summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-03-04 22:56:15 -0700
committerbd-912 <bdunahu@colostate.edu>2024-03-04 22:56:15 -0700
commit9dfeb14f493c9fa4bc2b50ca644e90c16bec05f3 (patch)
treedef4a051860862786caed01e504aa5bef685b498
parent12f1e24766b061e00663e1934b76f64cd79c8fea (diff)
Minor cleanup
-rw-r--r--minijava/PPrinter.java1
-rwxr-xr-xrun_tests.sh8
2 files changed, 3 insertions, 6 deletions
diff --git a/minijava/PPrinter.java b/minijava/PPrinter.java
index e8528ab..7dd484b 100644
--- a/minijava/PPrinter.java
+++ b/minijava/PPrinter.java
@@ -31,7 +31,6 @@ public class PPrinter<R,A> extends GJDepthFirst<R,A> {
* f1 -> ( TypeDeclaration() )*
* f2 -> <EOF>
*/
- @SuppressWarnings("unchecked")
public R visit(Goal n, A argu) {
this.printNode(n, argu);
R _ret=null;
diff --git a/run_tests.sh b/run_tests.sh
index 4a7c056..6c63a22 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -2,12 +2,10 @@
for i in ./tests/*.java; do
[ -f "$i" ] || break
- [[ "$i" == *"error"* ]] && expected="Type error" ||
- expected="Program type checked successfully"
- actual=$(java Typecheck < $i)
+ [[ "$i" == *"error"* ]] && expected="Type error" ||
+ expected="Program type checked successfully"
+ actual=$(java Typecheck < $i)
echo -n "$(basename ${i}): "
[[ $expected != $actual ]] && echo -e "FAILED---Expected: $expected" || echo 'PASSED'
done
-
-