author | wenzelm |
Mon, 21 Jul 2014 20:36:25 +0200 | |
changeset 57596 | 3a1b1bda702f |
parent 57083 | 5c26000e1042 |
child 57626 | 2288a6f17930 |
permissions | -rw-r--r-- |
53376 | 1 |
theory ToyList_Test |
2 |
imports Datatype |
|
3 |
begin |
|
4 |
||
5 |
ML {* (* FIXME somewhat non-standard, fragile *) |
|
6 |
let |
|
7 |
val texts = |
|
56208 | 8 |
map (File.read o Path.append (Resources.master_directory @{theory}) o Path.explode) |
57083 | 9 |
["ToyList1.txt", "ToyList2.txt"]; |
53376 | 10 |
val trs = Outer_Syntax.parse Position.start (implode texts); |
11 |
val end_state = fold (Toplevel.command_exception false) trs Toplevel.toplevel; |
|
12 |
in @{assert} (Toplevel.is_toplevel end_state) end; |
|
13 |
*} |
|
14 |
||
15 |
end |
|
16 |