Define a `sod-user' package which uses `common-lisp' and `sod', and bind
`*package*' to this when we start reading a new module.
(define-module (pathname :location location :truename truename)
(with-open-file (f-stream pathname :direction :input)
(let* ((*readtable* (copy-readtable))
(define-module (pathname :location location :truename truename)
(with-open-file (f-stream pathname :direction :input)
(let* ((*readtable* (copy-readtable))
+ (*package* (find-package '#:sod-user))
(char-scanner (make-instance 'charbuf-scanner
:stream f-stream))
(scanner (make-instance 'sod-token-scanner
(char-scanner (make-instance 'charbuf-scanner
:stream f-stream))
(scanner (make-instance 'sod-token-scanner
#:sod-utilities
#:sod-parser))
#:sod-utilities
#:sod-parser))
+(cl:defpackage #:sod-user
+ (:use #:common-lisp
+ #:sod))
+
(cl:in-package #:sod)
;;;----- That's all, folks --------------------------------------------------
(cl:in-package #:sod)
;;;----- That's all, folks --------------------------------------------------