From 1c90d9ae3b84f62168337f3c8b1c3854f6198330 Mon Sep 17 00:00:00 2001 From: riton Date: Mon, 14 Jul 2025 21:45:47 +0300 Subject: More refactoring of tests and packages Squashed commit of the following: commit c4659d8be4d664ba7fd4b59d613536f2368cff0e Author: riton Date: Mon Jul 14 21:44:48 2025 +0300 fix package name typo commit ec802339b838d059f4bc9e4da7cc370ab4d91a46 Author: riton Date: Mon Jul 14 21:43:42 2025 +0300 seperate deftest from test instances commit 92d20e0b8405a4a51f01ff65f8bd81f4d25c1e21 Author: riton Date: Mon Jul 14 21:29:47 2025 +0300 make a test system definition commit 125e5fe1e8c07230f32e762273c5c0dd259209e6 Author: riton Date: Mon Jul 14 00:39:09 2025 +0300 compiler macro of as-token commit 0e39c32097783aa39e3fed479bb85b412065f597 Author: riton Date: Mon Jul 14 00:21:46 2025 +0300 define new packages --- src/package.lisp | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) (limited to 'src/package.lisp') 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)) -- cgit v1.2.3