X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=parse-macros.lisp;h=1b00ae50fbd5639e17f31096e5b25ae14a7858f1;hb=c01a3503e58ba9d4e7fadb42f3f0f69c38496e10;hp=a2af75ef7a7bf38a66c015c315825d86b2cc3974;hpb=8e895602ced5ab847ecc36c1eaa7be1c9a872a22;p=umlisp.git diff --git a/parse-macros.lisp b/parse-macros.lisp index a2af75e..1b00ae5 100644 --- a/parse-macros.lisp +++ b/parse-macros.lisp @@ -65,14 +65,15 @@ `(let ((,eof (gensym "EOFSYM-")) (,files (source-files ,path))) (unless ,files - (error "Can't find file files for ~A~%" ,path)) + (error "Can't find files for ~A~%" (namestring ,path))) (with-open-file (,ustream (first ,files) :direction :input #+(and clisp unicode) :external-format #+(and clisp unicode) charset:utf-8) (do ((,line (read-umls-line ,ustream ,eof) (read-umls-line ,ustream ,eof))) ((eq ,line ,eof) t) - ,@body))))) + (locally (declare (type list ,line)) + ,@body)))))) (defmacro with-umls-ufile ((line ufile) &body body) "Opens a UMLS and processes each parsed line with (body) argument"