From 6a24c69232901de51f50beab9c3d3b3760dee334 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Sat, 16 Mar 2024 22:06:32 -0600 Subject: (Nonfunctional) Implemented many type-checking rules --- tests/Empty.java | 5 +++++ tests/SimpleArithmetic.java | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/Empty.java create mode 100644 tests/SimpleArithmetic.java (limited to 'tests') 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; + } +} -- cgit v1.2.3