chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] newbie: using hart- unbound variable: hart-parse


From: Basile STARYNKEVITCH
Subject: [Chicken-users] newbie: using hart- unbound variable: hart-parse
Date: Sat, 13 Dec 2008 12:05:36 +0100
User-agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018)

Hello all,

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

% cat hartex.scm
(use hart)
(define people '((Fred address@hidden 25) (Mary address@hidden 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





reply via email to

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