diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-03-16 22:06:32 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-03-16 22:06:32 -0600 |
commit | 6a24c69232901de51f50beab9c3d3b3760dee334 (patch) | |
tree | 70c71b9ec25d3f6085d71c83e2be3719fe638ae9 /tests | |
parent | 5b09fb3697f4b1cc1f2f3781f10e1334ada69c22 (diff) |
(Nonfunctional) Implemented many type-checking rules
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Empty.java | 5 | ||||
-rw-r--r-- | tests/SimpleArithmetic.java | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/Empty.java b/tests/Empty.java new file mode 100644 index 0000000..dc665df --- /dev/null +++ b/tests/Empty.java @@ -0,0 +1,5 @@ +class Empty { + public static void main(String[] a) { + System.out.println(1); + } +} diff --git a/tests/SimpleArithmetic.java b/tests/SimpleArithmetic.java new file mode 100644 index 0000000..94c780e --- /dev/null +++ b/tests/SimpleArithmetic.java @@ -0,0 +1,6 @@ +class SimpleArithmetic{ + public static void main(String[] a){ + int x; + x = 1 + 2; + } +} |