Question: Write a Java program (using JFIex/Cup) to interpret WAE expressions. The CFG for WAE expressions is given below: You will write a main program, called
Write a Java program (using JFIex/Cup) to interpret WAE expressions. The CFG for WAE expressions is given below: You will write a main program, called WAE.java, that prompts the user with WAE>. The user can enter a WAE expression at the prompt or type exit to exit the WAE interpreter. If the user enters a WAE expression, your program should verify that it is a valid expression. If the expression is valid, it should be evaluated and the value of the expression should be printed; Otherwise and error message should be reported
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
