diff options
author | William Carroll <wpcarro@gmail.com> | 2020-01-22T21·52+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-01-23T13·45+0000 |
commit | 55860debe5e480a043ae47833a218b70a70bf19f (patch) | |
tree | 0294b10f1223ee8881048beef3277cc90c5abd41 | |
parent | c010e6d6cff1e348645c337b1c63f8d66a6d6859 (diff) |
Support Common Lisp
Adding some Common Lisp here to get the party started! *cues music*
-rw-r--r-- | common-lisp/main.lisp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common-lisp/main.lisp b/common-lisp/main.lisp new file mode 100644 index 000000000000..2c4a5a411635 --- /dev/null +++ b/common-lisp/main.lisp @@ -0,0 +1,15 @@ +(in-package #:cl-user) +(defpackage #:utils + (:documentation "Some utility functions and macros to wet my beak.") + (:use #:cl) + (:shadow #:type)) +(in-package #:utils) + +(defmacro type (name in out) + `(declaim (ftype (function ,in ,out) ,name))) + +(defmacro comment (&rest _forms) nil) + +(type add (int int) int) +(defun add (a b) + (+ a b)) |