A slight simplification of optstring
authorpaulson
Thu, 05 Jun 1997 13:16:12 +0200
changeset 3399 0c4efa9eac29
parent 3398 dfd9cbad5530
child 3400 80c979e0d42f
A slight simplification of optstring
src/ZF/thy_syntax.ML
--- a/src/ZF/thy_syntax.ML	Thu Jun 05 13:15:36 1997 +0200
+++ b/src/ZF/thy_syntax.ML	Thu Jun 05 13:16:12 1997 +0200
@@ -60,7 +60,7 @@
       end
     val domains = "domains" $$-- enum1 "+" string --$$ "<=" -- !! string
     val ipairs  = "intrs"   $$-- repeat1 (ident -- !! string)
-    fun optstring s = optional (s $$-- string) "\"[]\"" >> trim
+    fun optstring s = optional (s $$-- string >> trim) "[]"
   in domains -- ipairs -- optstring "monos" -- optstring "con_defs"
              -- optstring "type_intrs" -- optstring "type_elims"
      >> mk_params