src/Pure/ProofGeneral/pgip_parser.ML
changeset 48927 ef462b5558eb
parent 48878 5e850e6fa3c3
child 51274 cfc83ad52571
equal deleted inserted replaced
48926:8d7778a19857 48927:ef462b5558eb
    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},