1. Develop an unambiguous grammar for the language that consists of all the arithmetic expressions involving positive decimals, the addition operation and the subtraction operation. Addition and subtraction may happen between any pair of adjacent decimals. A compliant expression might look like this:
2. Develop a Java application (simple calculator) that uses an ANTLR parser for the above grammar to recognize such expressions and, if an expression is recognized, compute the value of the expression and output the value (like a simple calculator would do when it needs to evaluate an expression).
I need it by 20th Thursday evening!
8 freelancerjev ponuja v povprečju za ₹1360 na tem delu
Hi. I make many application for Windows using Java Swing, Java FX, Java EE, SE. I have good algorithm skills. You can send me technical documentation for reference. I will be glad to cooperate.