chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] Re: using regex-literals and csc?


From: Kyle R. Burton
Subject: [Chicken-users] Re: using regex-literals and csc?
Date: Sat, 14 Jun 2008 17:07:51 -0400

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 <address@hidden> 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
>
>
> address@hidden:~$ cat test.scm
> (use regex-literals)
> (use regex)
> (printf "~a\n"
>        (string-substitute #/[abc]/ "" "The alphabet goes
> abcdefghijklmnopqrstuvwxyz"))
>
> (exit)address@hidden:~$ cat test.scm
> (use regex-literals)
> (use regex)
> (printf "~a\n"
>        (string-substitute #/[abc]/ "" "The alphabet goes
> abcdefghijklmnopqrstuvwxyz"))
>
> (exit)
> address@hidden:~$ csi -q test.scm
> The lphabet goes abcdefghijklmnopqrstuvwxyz
> address@hidden:~$ 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
> address@hidden:~$
>



-- 
------------------------------------------------------------------------------
Wisdom and Compassion are inseparable.
 -- Christmas Humphreys
address@hidden http://asymmetrical-view.com/
------------------------------------------------------------------------------




reply via email to

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