chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] bind bug?


From: Ross Lonstein
Subject: [Chicken-users] bind bug?
Date: Sun, 20 Feb 2011 21:04:36 -0600
User-agent: Mutt/1.5.20 (2009-06-14)

I ran across what I think is a bug in bind parsing a preprocessor
macro containing single-quoted escaped hexadecimal character
value. Here is an example:

 (import foreign)
 (require-extension bind)

 (bind #<<EOF
 #define PARSE_THIS_ARRAY '\x00','\x00','\x00','\x00'
 EOF
 )

which results in the error:

 Error: during expansion of (bind ...) - lexer error: illegal character: `'' 
(code 39)

         Call history:

         <syntax>          (##core#begin (bind "#define
         PARSE_THIS_ARRAY '\\x00','\\x00','\\x00','\\x00'"))
         <syntax>          (bind "#define PARSE_THIS_ARRAY
         '\\x00','\\x00','\\x00','\\x00'")     <--

 Error: shell command terminated with non-zero exit status 17920: 
/opt/chicken/bin/chicken bind-bug.scm -output-file bind-bug.c

The header containing this is not mine and the example seems to be
valid (or at least is consumed by gcc and is not obviously out of line
with Sec. 2.7 of Harbison & Steele), so I wonder if it's something
that can be fixed in bind.

Thanks.

- Ross





reply via email to

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