Question: Project: Simple Integer Calculator Given this modified definition of the assign) statement from the Compiler Modules grammar. assign> ::= ld = int op Int where

 Project: Simple Integer Calculator Given this modified definition of the assign)

Project: Simple Integer Calculator Given this modified definition of the assign) statement from the Compiler Modules grammar. assign> ::= ld = int op Int where k- alphabetic variable name to 6 characters Int = positive integer value statement from the grammar: l) Accepts as input a string of up to 20 characters 2) Parses the string according to the grammar. ) Calculates the correct integer arithmetic result 4) Writes the calculated result value to the QtSpim display screen Examples Input by the user SUM 123+751 Output of program: SUM-874 Input by the usertotal 63* 72 Output of program: total 4536 Use the System Service calls on page A-44 of the textbook for the input and output Your program should display a message when it stops. A loop to allow testing would be helpful. The work products of this assignment are: 1) A copy of the source program text file. (asm; or .s; or txt) Screen captures showing your multiple test output results. Project: Simple Integer Calculator Given this modified definition of the assign) statement from the Compiler Modules grammar. assign> ::= ld = int op Int where k- alphabetic variable name to 6 characters Int = positive integer value statement from the grammar: l) Accepts as input a string of up to 20 characters 2) Parses the string according to the grammar. ) Calculates the correct integer arithmetic result 4) Writes the calculated result value to the QtSpim display screen Examples Input by the user SUM 123+751 Output of program: SUM-874 Input by the usertotal 63* 72 Output of program: total 4536 Use the System Service calls on page A-44 of the textbook for the input and output Your program should display a message when it stops. A loop to allow testing would be helpful. The work products of this assignment are: 1) A copy of the source program text file. (asm; or .s; or txt) Screen captures showing your multiple test output results

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!