Hi Everyone,
I need your help to develop an interpreter with given specs below. Can you guide me how start with this? I'm not that good in Java and our instructor requires us to to do this java. Do you think this is possible in Java? My deadline will be next week...till now im not able to figure out how will i do coding for this. ..
Input should look like this:
MYCODE
CREATE
FLOAT x is 0.00
STRING str is $Hello World$
FLOAT y is 0.00
FLOAT res is 0.00
END
BRAINPOWER
ASKVALUE x
ASKVALUE y
DISPLAY $ The sum is :$
GIVEMORE ADD x y
GIVE result
END
MYCODE
The out put should be
/* assuming x = 10 and y = 0 */
Hello World
The sum is 10