[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] newbie: using hart- unbound variable: hart-parse
From: |
Graham Fawcett |
Subject: |
Re: [Chicken-users] newbie: using hart- unbound variable: hart-parse |
Date: |
Tue, 16 Dec 2008 09:49:13 -0500 |
Hi folks,
Thanks, Felix, for answering this one. Is there a directive we could
add to hart itself, to automate the require-for-syntax?
Basile, I hope you enjoy using Hart!
Best,
Graham
On Mon, Dec 15, 2008 at 2:29 AM, felix winkelmann <address@hidden> wrote:
> 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
>
>
> _______________________________________________
> Chicken-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/chicken-users
>