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 <bunny...@gmail.com> wrote: > On Sat, Dec 13, 2008 at 12:05 PM, Basile STARYNKEVITCH > <bas...@starynkevitch.net> 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 > Chicken-users@nongnu.org > http://lists.nongnu.org/mailman/listinfo/chicken-users > _______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users