use standard parsers provided by SpecParse
authorkrauss
Mon, 30 Mar 2009 16:37:23 +0200
changeset 30791 02aa92682e88
parent 30790 350bb108406d
child 30793 b558464df7c9
use standard parsers provided by SpecParse
src/HOL/Tools/function_package/fundef_common.ML
--- a/src/HOL/Tools/function_package/fundef_common.ML	Mon Mar 30 16:37:23 2009 +0200
+++ b/src/HOL/Tools/function_package/fundef_common.ML	Mon Mar 30 16:37:23 2009 +0200
@@ -344,18 +344,9 @@
   fun config_parser default = 
       (Scan.optional (P.$$$ "(" |-- P.!!! (P.list1 option_parser) --| P.$$$ ")") [])
         >> (fn opts => fold apply_opt opts default)
-
-  fun pipe_error t = 
-  P.!!! (Scan.fail_with (K (cat_lines ["Equations must be separated by " ^ quote "|", quote t])))
-
-  val statement = 
-   SpecParse.opt_thm_name ":" -- P.prop
-    --| Scan.ahead ((P.term :-- pipe_error) || Scan.succeed ("",""))
-
-  val statements = P.enum1 "|" statement
 in
   fun fundef_parser default_cfg = 
-      config_parser default_cfg -- P.fixes --| P.where_ -- statements
+      config_parser default_cfg -- P.fixes -- SpecParse.where_alt_specs
 end