chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] more problems with macro expansion in a compiled bin


From: Shawn Rutledge
Subject: Re: [Chicken-users] more problems with macro expansion in a compiled binary
Date: Mon, 27 Mar 2006 23:35:18 -0700

OK I've narrowed it down a bit - I think it's just a bug in
stream-wiki itself.  If index.wiki looks like this:

[[toc:]]
== Title Name
Hello <big>world</big>!

then

#;1> (http:GET "localhost:8080/index.ssp?page=index")
"<p>\r == Title Name\r Hello <big>world</big>!\r</p>\n"

(the equals signs are not parsed) whereas if I take out the [[toc:]] line

#;2> (http:GET "localhost:8080/index.ssp?page=index")
"<a name='Title Name\r'></a><h1>Title Name\r</h1><p>Hello
<big>world</big>!\r</p>\n"

whereas if I put back a blank line at the top (just an extra CR/LF)

#;3> (http:GET "localhost:8080/index.ssp?page=index")
"<p>\r == Title Name\r Hello <big>world</big>!\r</p>\n"

again they are not parsed.  I also had this for testing stream-wiki standalone:

[proton][11:24:51 PM] cat wiki2html.scm
(use stream-wiki)
(write-stream
        (wiki->html (port->stream (open-input-file (car
(command-line-arguments)))))
        (open-output-file (string-append (car
(command-line-arguments)) ".html")) )

and it is also confused by a blank line at the top.

Now if I could just understand this parser maybe I could try to fix
it.  Can anybody give me some pointers on the meanings of ?  *? +? all
+all and the like in the stream-parser egg?

On 3/27/06, felix winkelmann <address@hidden> wrote:
> Hm, very strange. It seems to work fine here:
>
> ; spifffyd.scm:
>
> (declare (run-time-macros))
> (include "chicken-more-macros")
> (use spiffy)
> (set! spiffy-root-path ".")
> (start-server)
>
> foo.wiki:
>
> ==Header==
>
>
> % csi -R http-client
> ; loading library posix ...
> ; loading library srfi-1 ...
> ; loading /usr/local/lib/chicken/http-client.so ...
> ; loading /usr/local/lib/chicken/http-utils.so ...
> #;1> (http:GET "localhost:8080/index.ssp?page=foo")
> "<a name='Header'></a><h1>Header</h1>\n"
> #;2>
>
>
> Could you try this minimal example?
> Have eggs you use (stream-wiki uses quite a lot, and is sensitive
> about the order they are installed) been compiled with an older
> version of chicken?
>
>
> cheers,
> felix
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]