equal
deleted
inserted
replaced
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))) |