Hello all,

I just tried to compile the HART example http://chicken.wiki.br/hart#examples

% cat hartex.scm
(use hart)
(define people '((Fred [email protected] 25) (Mary [email protected] 33)))

(hart (html (head (title "People"))
           (body (h1 (fmt: "A list of ~a people" (length people)))
                 (if: (null? people)
                      (h2 "No people!")
                      (ol (for: ((name email age) people)
                            (li (a (@ (href (conc "mailto:"; email)))
                                   (text: name))
                                (fmt: ", who is ~a years old." age))))))))

% chicken-setup -ls hart /var/lib/chicken/3/hart.scm
/var/lib/chicken/3/hart-support.so

% csc hartex.scm -o hartex Error: during expansion of (hart ...) - unbound variable: hart-parse

   Call history:

<syntax> (begin (hart (html (head (title "People")) (body (h1 (fmt: "A list of ~a people" (length people))) (if... <syntax> (hart (html (head (title "People")) (body (h1 (fmt: "A list of ~a people" (length people))) (if: (nu......
   <eval>        (##sys#list (quote noop) (apply hart-parse forms))
   <eval>        (apply hart-parse forms)    <--
*** Shell command terminated with exit status 1: /usr/bin/chicken hartex.scm -output-file hartex.c -quiet


I am obviously missing something obvious, but what? I thought that the use directive is enhancing the enviroment, including macro & syntax extension, at compile time!

Regards.

PS. Apologies for asking so many newbie questions!

--
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***
membre de l'APRIL "promouvoir et défendre le logiciel libre"
Rejoignez maitenant pplus de 3500 adhérents http://www.april.org



_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to