Daniel Gackle | 23 May 08:21

Can't call register-emb

I’m new to Lisp, eager to learn, but having trouble getting cl-emb to work. I’m running Lispbox on Windows, CLISP 2.37 (http://www.gigamonkeys.com/lispbox/). I’ve loaded cl-emb 0.4.3 and cl-ppcre 1.2.13. When I try to evaluate the first sample expression in the cl-emb readme:

 

(cl-emb:register-emb "test1"

                     "10 stars: <% (dotimes (i 10) %>*<% ) %>")

 

… I get the following:

 

CL-PPCRE:REGEX-REPLACE-ALL: illegal keyword/value pair :SIMPLE-CALLS, T in argument list.

The allowed keywords are #1=(:START

    :END :PRESERVE-CASE)

   [Condition of type SYSTEM::SIMPLE-KEYWORD-ERROR]

 

 Backtrace:

  0: #<COMPILED-FUNCTION CL-EMB::CONSTRUCT-EMB-FUNCTION>

  1: #<COMPILED-FUNCTION #:|131 139 (DEFMETHOD REGISTER-EMB (NAME #) ...)-20-1-1|>

...

 

Can anyone help?

 

Sincerely,

Daniel

<div>

<div class="Section1">

<p class="MsoNormal"><span>I&rsquo;m new to Lisp, eager to learn, but having trouble
getting cl-emb to work. I&rsquo;m running Lispbox on Windows, CLISP 2.37 (<a href="http://www.gigamonkeys.com/lispbox/">http://www.gigamonkeys.com/lispbox/</a>).
I&rsquo;ve loaded cl-emb 0.4.3 and cl-ppcre 1.2.13. When I try to evaluate the
first sample expression in the cl-emb readme:<p></p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span>(cl-emb:register-emb
"test1"<p></p></span></p>

<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "10 stars: &lt;% (dotimes
(i 10) %&gt;*&lt;% ) %&gt;")</span><span><p></p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span>&hellip; I get the following:<p></p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span>CL-PPCRE:REGEX-REPLACE-ALL: illegal keyword/value
pair :SIMPLE-CALLS, T in argument list.<p></p></span></p>

<p class="MsoNormal"><span>The allowed keywords are #1=(:START<p></p></span></p>

<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp; :END :PRESERVE-CASE)<p></p></span></p>

<p class="MsoNormal"><span>&nbsp;&nbsp; [Condition of type SYSTEM::SIMPLE-KEYWORD-ERROR]<p></p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span>&nbsp;</span><span>Backtrace:<p></p></span></p>

<p class="MsoNormal"><span>&nbsp; 0: #&lt;COMPILED-FUNCTION
CL-EMB::CONSTRUCT-EMB-FUNCTION&gt;<p></p></span></p>

<p class="MsoNormal"><span>&nbsp; 1: #&lt;COMPILED-FUNCTION #:|131 139 (DEFMETHOD
REGISTER-EMB (NAME #) ...)-20-1-1|&gt;<p></p></span></p>

<p class="MsoNormal"><span>...</span><span><p></p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span>Can anyone help?<p></p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span>Sincerely,<p></p></span></p>

<p class="MsoNormal"><span>Daniel <p></p></span></p>

</div>

</div>
Stefan Scholl | 25 May 20:32

Re: Can't call register-emb

On 2006-05-23 00:25:15, Daniel Gackle wrote:
> I'm new to Lisp, eager to learn, but having trouble getting cl-emb to work.
> I'm running Lispbox on Windows, CLISP 2.37
> (http://www.gigamonkeys.com/lispbox/). I've loaded cl-emb 0.4.3 and cl-ppcre
> 1.2.13. When I try to evaluate the first sample expression in the cl-emb
> readme:
> CL-PPCRE:REGEX-REPLACE-ALL: illegal keyword/value pair :SIMPLE-CALLS, T in
> argument list.
> 
> The allowed keywords are #1=(:START
>     :END :PRESERVE-CASE)

Are you sure that you use CL-PPCRE 1.2.13? According to
http://weitz.de/cl-ppcre/CHANGELOG SIMPLE-CALLS was added in
0.7.8

Daniel Gackle | 25 May 22:07

RE: Can't call register-emb

Stefan,

You are right, the CL-PPCRE included in Lispbox is an older version (much
older, it would seem, given the changelog you quoted). I downloaded and
installed the latest version (1.2.14) and the error no longer occurs.

Thank you!

Daniel

-----Original Message-----
From: cl-emb-devel-bounces@...
[mailto:cl-emb-devel-bounces@...] On Behalf Of Stefan Scholl
Sent: Thursday, May 25, 2006 12:33 PM
To: cl-emb-devel@...
Subject: Re: [cl-emb-devel] Can't call register-emb

On 2006-05-23 00:25:15, Daniel Gackle wrote:
> I'm new to Lisp, eager to learn, but having trouble getting cl-emb to
work.
> I'm running Lispbox on Windows, CLISP 2.37
> (http://www.gigamonkeys.com/lispbox/). I've loaded cl-emb 0.4.3 and
cl-ppcre
> 1.2.13. When I try to evaluate the first sample expression in the cl-emb
> readme:
> CL-PPCRE:REGEX-REPLACE-ALL: illegal keyword/value pair :SIMPLE-CALLS, T in
> argument list.
> 
> The allowed keywords are #1=(:START
>     :END :PRESERVE-CASE)

Are you sure that you use CL-PPCRE 1.2.13? According to
http://weitz.de/cl-ppcre/CHANGELOG SIMPLE-CALLS was added in
0.7.8

_______________________________________________
cl-emb-devel site list
cl-emb-devel@...
http://common-lisp.net/mailman/listinfo/cl-emb-devel


Gmane