equal
deleted
inserted
replaced
19 fun badcmd text = [D.Badcmd {text = text}]; |
19 fun badcmd text = [D.Badcmd {text = text}]; |
20 |
20 |
21 fun thy_begin text = |
21 fun thy_begin text = |
22 (case try (Thy_Header.read Position.none) text of |
22 (case try (Thy_Header.read Position.none) text of |
23 NONE => D.Opentheory {thyname = NONE, parentnames = [], text = text} |
23 NONE => D.Opentheory {thyname = NONE, parentnames = [], text = text} |
24 | SOME {name, imports, ...} => |
24 | SOME {name = (name, _), imports, ...} => |
25 D.Opentheory {thyname = SOME name, parentnames = imports, text = text}) |
25 D.Opentheory {thyname = SOME name, parentnames = map #1 imports, text = text}) |
26 :: [D.Openblock {metavarid = NONE, name = NONE, objtype = SOME I.ObjTheoryBody}]; |
26 :: [D.Openblock {metavarid = NONE, name = NONE, objtype = SOME I.ObjTheoryBody}]; |
27 |
27 |
28 fun thy_heading text = |
28 fun thy_heading text = |
29 [D.Closeblock {}, |
29 [D.Closeblock {}, |
30 D.Doccomment {text = text}, |
30 D.Doccomment {text = text}, |