src/HOL/SPARK/Tools/spark_commands.ML
changeset 81843 4329a8fecbe1
parent 72754 1456c5747416
equal deleted inserted replaced
81842:5900b58d6bd4 81843:4329a8fecbe1
    11 fun spark_open header (files, prfx) thy =
    11 fun spark_open header (files, prfx) thy =
    12   let
    12   let
    13     val ([{src_path, lines = vc_lines, pos = vc_pos, ...}: Token.file,
    13     val ([{src_path, lines = vc_lines, pos = vc_pos, ...}: Token.file,
    14       {lines = fdl_lines, pos = fdl_pos, ...},
    14       {lines = fdl_lines, pos = fdl_pos, ...},
    15       {lines = rls_lines, pos = rls_pos, ...}], thy') = files thy;
    15       {lines = rls_lines, pos = rls_pos, ...}], thy') = files thy;
    16     val path = fst (Path.split_ext src_path);
    16     val path = Path.drop_ext src_path;
    17   in
    17   in
    18     SPARK_VCs.set_vcs
    18     SPARK_VCs.set_vcs
    19       (snd (Fdl_Parser.parse_declarations fdl_pos (cat_lines fdl_lines)))
    19       (snd (Fdl_Parser.parse_declarations fdl_pos (cat_lines fdl_lines)))
    20       (Fdl_Parser.parse_rules rls_pos (cat_lines rls_lines))
    20       (Fdl_Parser.parse_rules rls_pos (cat_lines rls_lines))
    21       (snd (Fdl_Parser.parse_vcs header vc_pos (cat_lines vc_lines)))
    21       (snd (Fdl_Parser.parse_vcs header vc_pos (cat_lines vc_lines)))