changeset 978 | 8778d23fef92 |
977:1e6eca42d90b | 978:8778d23fef92 |
---|---|
1 // for testing compilation |
|
2 import scala.util.{Try, Success, Failure} |
|
3 |
|
4 import $file.cw041_add |
|
5 import cw041_add._ |
|
6 |
|
7 val ffile = os.read(os.pwd / "br.while") |
|
8 |
|
9 Try(test_string(ffile, "br")) match { |
|
10 case Success(v) => Console.println(s" Generated a j-file.") |
|
11 case Failure(e) => Console.println(s" Exception raised.") ; throw(e) |
|
12 } |