equal
deleted
inserted
replaced
619 (*we do all preparations and error checks here, deferring the real |
619 (*we do all preparations and error checks here, deferring the real |
620 work to record_definition*) |
620 work to record_definition*) |
621 |
621 |
622 fun gen_add_record prep_typ prep_raw_parent (params, bname) raw_parent raw_fields thy = |
622 fun gen_add_record prep_typ prep_raw_parent (params, bname) raw_parent raw_fields thy = |
623 let |
623 let |
624 val _ = Theory.require thy "Record" "record definitions"; |
624 val _ = Theory.requires thy "Record" "record definitions"; |
625 val sign = Theory.sign_of thy; |
625 val sign = Theory.sign_of thy; |
626 val _ = writeln ("Defining record " ^ quote bname ^ " ..."); |
626 val _ = writeln ("Defining record " ^ quote bname ^ " ..."); |
627 |
627 |
628 |
628 |
629 (* parents *) |
629 (* parents *) |