src/HOL/Tools/try0.ML
changeset 58028 e4250d370657
parent 58011 bc6bced136e5
child 58842 22b87ab47d3b
equal deleted inserted replaced
58027:dc58ab4d9f44 58028:e4250d370657
   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, []))