chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] hart and syntax-case won't play nice. :(


From: Kon Lovett
Subject: Re: [Chicken-users] hart and syntax-case won't play nice. :(
Date: Sat, 15 Mar 2008 10:26:28 -0700

hart uses low-level macros only.

klovett ~ #204
$ csi

CHICKEN
(c)2008 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version 3.0.8 - macosx-unix-gnu-ppc [ manyargs dload ptables applyhook ]
SVN rev. 9145   compiled 2008-03-01 on Nikko.local (Darwin)

; loading ./.csirc ...
#;1> (use hart)
; loading /usr/local/lib/chicken/3/hart.scm ...
; loading /usr/local/lib/chicken/3/hart-support.so ...
; loading /usr/local/lib/chicken/3/vector-lib.so ...
#;2> (hart (html))
<html/>#;3> ,q

klovett ~ #205
$ csi

CHICKEN
(c)2008 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version 3.0.8 - macosx-unix-gnu-ppc [ manyargs dload ptables applyhook ]
SVN rev. 9145   compiled 2008-03-01 on Nikko.local (Darwin)

; loading ./.csirc ...
#;1> (use syntax-case)
; loading /usr/local/lib/chicken/3/syntax-case.so ...
; loading /usr/local/lib/chicken/3/syntax-case-chicken-macros.scm ...
#;2> (use hart)
; loading /usr/local/lib/chicken/3/hart.scm ...
; loading /usr/local/lib/chicken/3/hart-support.so ...
; loading /usr/local/lib/chicken/3/vector-lib.so ...
Error: invalid syntax: hart

        Call history:

<eval> (list (quote #(syntax-object (k . args) ((top) #(ribcage #(_ name transformer) #((top) (top) (top)) #(... <eval> (list (quote #(syntax-object datum->syntax- object ((top) #(ribcage #(_ name transformer) #((top) (top... <eval> (cons (quote #(syntax-object apply ((top) # (ribcage #(_ name transformer) #((top) (top) (top)) #("i"... <eval> (cons transformer.479 (quote #(syntax-object ((syntax-object->datum (syntax args))) ((top) #(ribcage...... <eval> ((lambda (tmp.1322) ((lambda (tmp.1323) (if tmp.1323 (##sys#apply (lambda (k.1324 args.1325) (datum-...... <eval> ((lambda (tmp.1323) (if tmp.1323 (##sys#apply (lambda (k.1324 args.1325) (datum->syntax-object k. 132......
        <eval>          ($syntax-dispatch tmp.1322 (quote (any . any)))
        <eval>          (##syncase#syntax-error tmp.1322)       <--

On Mar 15, 2008, at 10:04 AM, Robin Lee Powell wrote:

On Sat, Mar 15, 2008 at 05:38:51PM +0100, Felix Winkelmann wrote:
From: Robin Lee Powell <address@hidden>

csi's "-e" is implemented by wrapping the forms into a "(begin
...)". Due to the way toplevel expressions are macroexpanded (and
details that you don't want to know about), "(use syntax-case)"
will override the main macro-expansion mechanism starting with the
next toplevel expression. The begin-form is one toplevel
expression. What could possibly work is use another "-e" option to
run the "(hart ...)" expression.

<snip>

-Robin

--
Lojban Reason #17: http://en.wikipedia.org/wiki/Buffalo_buffalo
Proud Supporter of the Singularity Institute - http://singinst.org/
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/


_______________________________________________
Chicken-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/chicken-users

Best Wishes,
Kon






reply via email to

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