diff -r 1e6eca42d90b -r 8778d23fef92 cw4_marking/c3.sc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cw4_marking/c3.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 / "br.while") + +Try(test_string(ffile, "br")) match { + case Success(v) => Console.println(s" Generated a j-file.") + case Failure(e) => Console.println(s" Exception raised.") ; throw(e) +}