Wow, great!
On Mon, Jan 31, 2011 at 3:12 PM, Andy Wingo wrote:
> On Mon 31 Jan 2011 19:44, Noah Lavine writes:
>
>> ;;; compiling test.scm
>> ;;; WARNING: compilation of test.scm failed:
>> ;;; key wrong-type-arg, throw_args (#f "Wrong type to apply: ~S" (#f) (#f))
>> hello, world!
>
> Now it do
On Mon 31 Jan 2011 19:44, Noah Lavine writes:
> ;;; compiling test.scm
> ;;; WARNING: compilation of test.scm failed:
> ;;; key wrong-type-arg, throw_args (#f "Wrong type to apply: ~S" (#f) (#f))
> hello, world!
Now it does:
scheme@(guile-user)> (load "/tmp/test.scm")
;;; note: autocomp
Oh, sorry. I solved that problem (it needed an eval-when). That might
also suggest some solutions to peg.scm oddness.
I'd still be interested in any tips on debugging macros, though.
Thanks,
Noah
On Mon, Jan 31, 2011 at 2:20 PM, Noah Lavine wrote:
> Hello again,
>
> I tried finding the error by
On Mon 31 Jan 2011 19:44, Noah Lavine writes:
> (define (codegen)
> #`(let ((message "hello, world!\n"))
> (display message)))
>
> (define-syntax test
> (lambda (x)
> (syntax-case x ()
> (_ (codegen)
>
> (test)
>
> Guile tried to compile test.scm, failed, and then interpre
Hello again,
I tried finding the error by running compile-file, but I got the
following Guile session:
scheme@(guile-user)> (compile-file "test.scm")
ice-9/boot-9.scm:119:21: Wrong type to apply: #f
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user)> ,bt
Hello all,
I ran into an error message in Guile, and I'm not sure how to track
down the cause of it. I used a file called test.scm with the following
contents:
#!guile
!#
(define (codegen)
#`(let ((message "hello, world!\n"))
(display message)))
(define-syntax test
(lambda (x)
(sy