mirror of
https://github.com/carp-lang/Carp.git
synced 2024-11-05 04:44:12 +03:00
f78fd16a71
* refactor: Move code out of Macros.carp into other files * fix: Move back some macros needed in --no-core mode * refactor: Remove weird 'evaluate' macros * fix: Put back more macros * fix: Remove transitive loading of Macros.carp * refactor: Remove ArrayMacros.carp and put 'for' at top of Array.carp instead * refactor: More splitting up * refactor: Move back save-docs * fix: Moved back some stuff Co-authored-by: Erik Svedang <erik@Eriks-iMac.local>
68 lines
1.9 KiB
Plaintext
68 lines
1.9 KiB
Plaintext
;; The 'copy' and 'str' interfaces are defined internally:
|
|
;;(definterface copy (λ [&a] a))
|
|
;;(definterface str (λ [a] String))
|
|
|
|
(definterface = (λ [a a] Bool))
|
|
|
|
(definterface add-ref (λ [&a &a] a))
|
|
(definterface sub-ref (λ [&a &a] a))
|
|
(definterface mul-ref (λ [&a &a] a))
|
|
(definterface div-ref (λ [&a &a] a))
|
|
|
|
(definterface + (λ [a a] a))
|
|
(definterface - (λ [a a] a))
|
|
(definterface * (λ [a a] a))
|
|
(definterface / (λ [a a] a))
|
|
(definterface mod (λ [a a] a))
|
|
|
|
(definterface bit-and (λ [a a] a))
|
|
(definterface bit-or (λ [a a] a))
|
|
(definterface bit-xor (λ [a a] a))
|
|
(definterface bit-not (λ [a] a))
|
|
(definterface bit-shift-left (λ [a a] a))
|
|
(definterface bit-shift-right (λ [a a] a))
|
|
|
|
(definterface < (λ [a a] Bool))
|
|
(definterface > (λ [a a] Bool))
|
|
|
|
(definterface zero (λ [] a))
|
|
(definterface inc (λ [a] a))
|
|
(definterface dec (λ [a] a))
|
|
(definterface neg (λ [a] a))
|
|
|
|
(definterface to-int (λ [a] Int))
|
|
(definterface from-int (λ [Int] a))
|
|
|
|
(definterface format (λ [&String a] String))
|
|
(definterface from-string (λ [&String] a))
|
|
|
|
(definterface random (Fn [] a))
|
|
(definterface random-between (Fn [a a] a))
|
|
|
|
(definterface pi a)
|
|
|
|
(definterface abs (λ [a] a))
|
|
(definterface acos (λ [a] a))
|
|
(definterface asin (λ [a] a))
|
|
(definterface atan (λ [a] a))
|
|
(definterface atan2 (λ [a a] a))
|
|
(definterface ceil (λ [a] a))
|
|
(definterface cos (λ [a] a))
|
|
(definterface cosh (λ [a] a))
|
|
(definterface exp (λ [a] a))
|
|
(definterface floor (λ [a] a))
|
|
(definterface frexp (λ [a (Ref Int)] a))
|
|
(definterface ldexp (λ [a Int] a))
|
|
(definterface log (λ [a] a))
|
|
(definterface log10 (λ [a] a))
|
|
(definterface mod (λ [a a] a))
|
|
(definterface modf (λ [a (Ref a)] a))
|
|
(definterface pow (λ [a a] a))
|
|
(definterface sin (λ [a] a))
|
|
(definterface sinh (λ [a] a))
|
|
(definterface sqrt (λ [a] a))
|
|
(definterface tan (λ [a] a))
|
|
(definterface tanh (λ [a] a))
|
|
|
|
(definterface slice (Fn [&a Int Int] a))
|