fixed record parser;
authorwenzelm
Thu Nov 13 15:14:14 1997 +0100 (1997-11-13)
changeset 422638c91213f26b
parent 4225 3d9e551bc5a6
child 4227 a5c947d7c56c
fixed record parser;
src/HOL/thy_syntax.ML
     1.1 --- a/src/HOL/thy_syntax.ML	Thu Nov 13 12:43:17 1997 +0100
     1.2 +++ b/src/HOL/thy_syntax.ML	Thu Nov 13 15:14:14 1997 +0100
     1.3 @@ -37,7 +37,7 @@
     1.4  
     1.5  val record_decl =
     1.6    (type_args -- name >> (mk_pair o apfst mk_list)) --$$ "="
     1.7 -    -- optional (typ --$$ "+" >> cat "Some") "None"
     1.8 +    -- optional (typ --$$ "+" >> (parens o cat "Some")) "None"
     1.9      -- repeat1 ((name --$$ "::" -- typ) >> mk_pair)
    1.10    >> (fn ((x, y), zs) => cat_lines [x, y, mk_big_list zs]);
    1.11