starting work on array

This commit is contained in:
Erik Svedäng 2016-02-24 22:44:22 +01:00
parent e5e0d5e44c
commit 1d70a5daac
2 changed files with 17 additions and 1 deletions

3
.gitignore vendored
View File

@ -9,4 +9,5 @@
a.out
/bin/Debug/
/bin/Release/
/build/
/build/
/exe

15
lisp/array.carp Normal file
View File

@ -0,0 +1,15 @@
;; The generic, built in array.
(defmacro total-size [count]
(* count 4))
(register-builtin "array-new-internal" '(:int) (gen-typevar))
(defn single-item-array [item]
(let [a (array-new-internal 1)]
))