equal
deleted
inserted
replaced
542 and (OCaml) "Big'_int.zero'_big'_int" |
542 and (OCaml) "Big'_int.zero'_big'_int" |
543 and (Haskell) "0" |
543 and (Haskell) "0" |
544 and (Scala) "BigInt(0)" |
544 and (Scala) "BigInt(0)" |
545 |
545 |
546 setup {* |
546 setup {* |
547 fold (Numeral.add_code @{const_name Code_Numeral.Pos} |
547 fold (fn target => |
548 false Code_Printer.literal_numeral) ["SML", "OCaml", "Haskell", "Scala"] |
548 Numeral.add_code @{const_name Code_Numeral.Pos} I Code_Printer.literal_numeral target |
549 *} |
549 #> Numeral.add_code @{const_name Code_Numeral.Neg} (op ~) Code_Printer.literal_numeral target) |
550 |
550 ["SML", "OCaml", "Haskell", "Scala"] |
551 setup {* |
|
552 fold (Numeral.add_code @{const_name Code_Numeral.Neg} |
|
553 true Code_Printer.literal_numeral) ["SML", "OCaml", "Haskell", "Scala"] |
|
554 *} |
551 *} |
555 |
552 |
556 code_printing |
553 code_printing |
557 constant "plus :: integer \<Rightarrow> _ \<Rightarrow> _" \<rightharpoonup> |
554 constant "plus :: integer \<Rightarrow> _ \<Rightarrow> _" \<rightharpoonup> |
558 (SML) "IntInf.+ ((_), (_))" |
555 (SML) "IntInf.+ ((_), (_))" |