Question: Objectives The goal of this programming assignment is to implement an INTERPOL interpreter using Python, which you have learned at the beginning of the semester.

 Objectives The goal of this programming assignment is to implement anINTERPOL interpreter using Python, which you have learned at the beginning ofthe semester. You may accomplish the assignment individually or by pair. Yourinterpreter should be able to perform the following Accept expressions from the

Objectives The goal of this programming assignment is to implement an INTERPOL interpreter using Python, which you have learned at the beginning of the semester. You may accomplish the assignment individually or by pair. Your interpreter should be able to perform the following Accept expressions from the user Prse the code entered by the user and check for lexical and syntax errors. Properly execute INTERPOL expressions by the user deals with integers and consequently, no floating-point values are allowed. This implies that the results of arithmetic operations are automatically converted to integers. Strings are also allowed for printing purposes Formatting Spaces are used to demarcate tokens in the language Multiple spaces and tabs are treated as single spaces and are otherwise considered irrelevant. Indentation is also irrelevant. INTERPOL is case sensitive Section: CREATE & RUP TURE This only has one section. The section begins with the CREATE keyword and ends with the RUPTURE keyword. All coding variable declarations and actual instructions are to be placed between these keywords Example CREATE DSTR stringmo WITH I have a pen] GIVEYOUIl stringmo DINT x WITH PLUS 1 MINUS 99 DINT y STORE 100 IN y GIVEYOUII x GIVEYOUl y RUPTURE Expected Output: I have a pen 100 Objectives The goal of this programming assignment is to implement an INTERPOL interpreter using Python, which you have learned at the beginning of the semester. You may accomplish the assignment individually or by pair. Your interpreter should be able to perform the following Accept expressions from the user Prse the code entered by the user and check for lexical and syntax errors. Properly execute INTERPOL expressions by the user deals with integers and consequently, no floating-point values are allowed. This implies that the results of arithmetic operations are automatically converted to integers. Strings are also allowed for printing purposes Formatting Spaces are used to demarcate tokens in the language Multiple spaces and tabs are treated as single spaces and are otherwise considered irrelevant. Indentation is also irrelevant. INTERPOL is case sensitive Section: CREATE & RUP TURE This only has one section. The section begins with the CREATE keyword and ends with the RUPTURE keyword. All coding variable declarations and actual instructions are to be placed between these keywords Example CREATE DSTR stringmo WITH I have a pen] GIVEYOUIl stringmo DINT x WITH PLUS 1 MINUS 99 DINT y STORE 100 IN y GIVEYOUII x GIVEYOUl y RUPTURE Expected Output: I have a pen 100

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!