Replies: 4 comments
-
Since loading pclchap31-html.lisp causes the termination of the Medley Online session, I used the bisection method to narrow down where the issue occurs. Instead of loading pclchap31-html.lisp after the files it depends on, I proceeded by loading a modified copy of pclchap31-html.lisp containing the code up to a line indicated by the bisection method. The result is the issue lies between lines 316 and 320 (inclusive) of pclchap31-html.lisp. That portion of the file contains only this code: (defun parse-cons-form (sexp)
(if (consp (first sexp))
(parse-explicit-attributes-sexp sexp)
(parse-implicit-attributes-sexp sexp))) Nothing jumps at me but that code might just trigger an issue located elsehere. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Now I can load the compiled files correctly. But when I evaluate test expressions I get undefined function errors like this: 2/12> (in-package :com.gigamonkeys.html)
#<Package COM.GIGAMONKEYS.HTML>
2/13>
2/13> *package*
#<Package COM.GIGAMONKEYS.HTML>
2/14> (apropos "PROCESS-SEXP-HTML")
PROCESS-SEXP-HTML
2/15> (html (:p "foo"))
In IL:OLDFAULT1:
PROCESS-SEXP-HTML is an undefined function.
2/16: ^
2/17>
|
Beta Was this translation helpful? Give feedback.
-
Never mind, the code of these chapters includes several calls to |
Beta Was this translation helpful? Give feedback.
-
Chapters 30 and 31
This is the continuation of the work on issue #609. To evaluate the compatibility of Medley Common Lisp with ANSI Common Lisp I'm testing on Medley the code of Peter Seibel's book Practical Common Lisp.
Code
Chapters 30 and 31 describe an HTML generation library.
Since this is a more substantial project than those in earlier chapters I'm preparing to test the code in two steps. First, from Medley I manually load in the proper order the source files that come with the book. These files depend from a macro library described in chapter 8 which I also load.
Once I manage to load the files correctly I will evaluated at a XCL Exec the example expressions of the chapter, with the addition of just a couple of missing calls.
The source files require the following modifications to the package definition and access code:
with-gensyms
which XCL already has:use
lists of package definitions to includeLISP
,XCL
, andCLOS
(because system packages are slightly different on Medley; and because I'm using the Medley Online 19-Mar-2024 02:06:49 build in which some packages are partially broken as a side effect of the initial port of SaclaLOOP
, soCLOS
is required to avoid errors such asUndefined car of form DEFCLASS
)Here are the source files, renamed from
.lisp
to.txt
as GitHub requires:File loading issue
I hit a snag with this setup as I'm unable to proceed due to a file loading issue. From a XCL Exec I load the source files in this order:
As soon as I load pclchap31-html.lisp I'm immediately logged out of Medley Online and the session ends.
Beta Was this translation helpful? Give feedback.
All reactions