cw4_marking/c1.sc
changeset 978 8778d23fef92
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cw4_marking/c1.sc	Mon Feb 03 12:34:38 2025 +0000
@@ -0,0 +1,12 @@
+// for testing compilation
+import scala.util.{Try, Success, Failure}
+
+import $file.cw041_add
+import cw041_add._
+
+val ffile = os.read(os.pwd / "for.while")
+
+Try(test_string(ffile, "for")) match {
+  case Success(v) => Console.println(s"   Generated a j-file.")
+  case Failure(e) => Console.println(s"   Exception raised.") ; throw(e)
+}