Please read Appendix A in your textbook.
Write a Java program to count the number of distinct variables in a
WHILE program. You should use the VISITOR design pattern.
Please use the JAR file available in $CLASSHOME/lib/.
My solution runs as follows:
java edu.uwm.cs.cs838.whilex.analysis.CountVariables test.whl test.whl has 3 variables: x z y
Also, write a WHILE program (in the non-extended language)
to compute into r the integer square root of
the value in variable x. Test your program using the
WHILE interpreter edu.uwm.cs.cs838.whilex.eval.Interpreter.
Mathematically:
You should use Newton's method and successively approximate
Please put your homework files in your homework1 directory before class time on the due date.