Ok, that's embarassing. It's right in the docs for the egg: http://chicken.wiki.br/regex-literals
csc -X regex-literals test.scm worked perfectly. Sorry for teh dumbz. Kyle On Sat, Jun 14, 2008 at 5:06 PM, Kyle R. Burton <[EMAIL PROTECTED]> wrote: > I like regex-literals. I'm confused about how to get it to work when > compiling though. It seems to work with csi just fine (which is > great). I get an error about the read syntax when I try to compile it > (using csc) though. Is there a csc option that I should be using? > > > Regards, > > Kyle R. Burton > > > [EMAIL PROTECTED]:~$ cat test.scm > (use regex-literals) > (use regex) > (printf "~a\n" > (string-substitute #/[abc]/ "" "The alphabet goes > abcdefghijklmnopqrstuvwxyz")) > > (exit)[EMAIL PROTECTED]:~$ cat test.scm > (use regex-literals) > (use regex) > (printf "~a\n" > (string-substitute #/[abc]/ "" "The alphabet goes > abcdefghijklmnopqrstuvwxyz")) > > (exit) > [EMAIL PROTECTED]:~$ csi -q test.scm > The lphabet goes abcdefghijklmnopqrstuvwxyz > [EMAIL PROTECTED]:~$ csc test.scm > Error: invalid sharp-sign read syntax in line 4: #\/ > *** Shell command terminated with exit status 1: > /home/mortis/local/bin/chicken test.scm -output-file test.c -quiet > [EMAIL PROTECTED]:~$ > -- ------------------------------------------------------------------------------ Wisdom and Compassion are inseparable. -- Christmas Humphreys [EMAIL PROTECTED] http://asymmetrical-view.com/ ------------------------------------------------------------------------------ _______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
