summaryrefslogtreecommitdiff
path: root/src/package.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/package.lisp')
-rw-r--r--src/package.lisp32
1 files changed, 30 insertions, 2 deletions
diff --git a/src/package.lisp b/src/package.lisp
index aa399d9..6f05abe 100644
--- a/src/package.lisp
+++ b/src/package.lisp
@@ -1,2 +1,30 @@
-(defpackage :monkey
- (:use :common-lisp))
+(defpackage #:utilities
+ (:use #:common-lisp)
+ (:export #:eval-always
+ #:make-string-view
+ #:read-file-contents))
+
+(defpackage #:monkey
+ (:use #:common-lisp #:utilities))
+
+(defpackage #:token
+ (:use #:common-lisp #:utilities)
+ (:shadow #:type)
+ (:export #:token
+ #:type-is
+ #:token=
+ #:make
+ #:as-token
+ #:lookup-identifier
+ ;; the following depend on macro arguments
+ #:token-type
+ ;;#:string->token
+ ;;#:token->string
+ ))
+
+(defpackage #:lexer
+ (:use #:common-lisp #:utilities)
+ (:export #:make #:lex))
+
+(defpackage #:monkey/test
+ (:use #:common-lisp #:utilities))