cw4_marking/c3.sc
author Christian Urban <christian.urban@kcl.ac.uk>
Mon, 03 Feb 2025 13:25:59 +0000
changeset 980 0c491eff5b01
parent 978 8778d23fef92
permissions -rw-r--r--
updated

// 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)
}