chicken-users
[Top][All Lists]
Advanced

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

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


From: felix winkelmann
Subject: Re: [Chicken-users] newbie: using hart- unbound variable: hart-parse
Date: Mon, 15 Dec 2008 08:29:09 +0100

On Sat, Dec 13, 2008 at 12:05 PM, Basile STARYNKEVITCH
<address@hidden> wrote:
>
> % 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!

This is a big in hart.scm: the macro uses a function from hart-support.scm, but
this is only available at run-time, not compile-time.

For the time being, add this before the first use if the "hart" macro:

(require-for-syntax 'hart-support)


cheers,
felix




reply via email to

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