equal
deleted
inserted
replaced
174 fun string_of_xthm (xref, args) = |
174 fun string_of_xthm (xref, args) = |
175 Facts.string_of_ref xref ^ |
175 Facts.string_of_ref xref ^ |
176 implode (map (enclose "[" "]" o Pretty.str_of o Token.pretty_src @{context}) args); |
176 implode (map (enclose "[" "]" o Pretty.str_of o Token.pretty_src @{context}) args); |
177 |
177 |
178 val parse_fact_refs = |
178 val parse_fact_refs = |
179 Scan.repeat1 (Scan.unless (Parse.name -- Args.colon) (Parse_Spec.xthm >> string_of_xthm)); |
179 Scan.repeat1 (Scan.unless (Parse.name -- Args.colon) (Parse.xthm >> string_of_xthm)); |
180 |
180 |
181 val parse_attr = |
181 val parse_attr = |
182 Args.$$$ "simp" |-- Args.colon |-- parse_fact_refs >> (fn ss => (ss, [], [], [])) |
182 Args.$$$ "simp" |-- Args.colon |-- parse_fact_refs >> (fn ss => (ss, [], [], [])) |
183 || Args.$$$ "intro" |-- Args.colon |-- parse_fact_refs >> (fn is => ([], is, [], [])) |
183 || Args.$$$ "intro" |-- Args.colon |-- parse_fact_refs >> (fn is => ([], is, [], [])) |
184 || Args.$$$ "elim" |-- Args.colon |-- parse_fact_refs >> (fn es => ([], [], es, [])) |
184 || Args.$$$ "elim" |-- Args.colon |-- parse_fact_refs >> (fn es => ([], [], es, [])) |