cw4_marking/c1.sc
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 18 Sep 2026 10:57:24 +0100
changeset 1038 34d2cfb7761a
parent 977 7a02c5b9e0df
child 1039 86d59b074abe
permissions -rw-r--r--
texupdate

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