| changeset 977 | 7a02c5b9e0df |
| 976:4be299d9b41b | 977:7a02c5b9e0df |
|---|---|
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 / "for.while") |
|
8 |
|
9 Try(test_string(ffile, "for")) match { |
|
10 case Success(v) => Console.println(s" Generated a j-file.") |
|
11 case Failure(e) => Console.println(s" Exception raised.") ; throw(e) |
|
12 } |