summaryrefslogtreecommitdiff
path: root/Typecheck.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-04-09 23:48:26 -0600
committerbd-912 <bdunahu@colostate.edu>2024-04-09 23:48:26 -0600
commit61a28b7f8e709d1884ccab15f0dc38ed19dfde70 (patch)
tree4a08bf487d7a18cc8cd328876067e57d261920f6 /Typecheck.java
parentc1e124b957fa840f7bd8da9ffc6871140cfabf16 (diff)
Partial arguments in Vaporize.MessageSend, Typecheck for milestone
Diffstat (limited to 'Typecheck.java')
-rw-r--r--Typecheck.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/Typecheck.java b/Typecheck.java
index b4149d9..4c43709 100644
--- a/Typecheck.java
+++ b/Typecheck.java
@@ -26,18 +26,18 @@ public class Typecheck {
root.accept(new SymTableTopDown<Void>(), symt);
PrintFilter.print("===================================================", true);
- // TypeCheckSimp ts = new TypeCheckSimp();
- // TypeInstance res = root.accept(ts, symt);
+ TypeCheckSimp ts = new TypeCheckSimp();
+ TypeInstance res = root.accept(ts, symt);
- // // Ugly code not to be inspired from: "my" way of storing
- // // type info / typecheck property: if some of my internal
- // // structure is empty, then things don't typecheck for
- // // me. This is specific to my own implementation.
- // // if (res != null && res.type_array.size() > 0)
- // if (res.getType() != TypeEnum.ERROR)
- // System.out.println("Program type checked successfully");
- // else
- // System.out.println("Type error");
+ // Ugly code not to be inspired from: "my" way of storing
+ // type info / typecheck property: if some of my internal
+ // structure is empty, then things don't typecheck for
+ // me. This is specific to my own implementation.
+ // if (res != null && res.type_array.size() > 0)
+ if (res.getType() != TypeEnum.ERROR)
+ System.out.println("Program type checked successfully");
+ else
+ System.out.println("Type error");
}
catch (ParseException e) {
System.out.println(e.toString());