chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Regexp egg compilation error


From: Arthur Maciel
Subject: Re: [Chicken-users] Regexp egg compilation error
Date: Tue, 13 Mar 2012 18:17:48 -0300

Thank you, guys!

2012/3/13 Mario Domenech Goulart <address@hidden>
Hi Arthur,

On Tue, 13 Mar 2012 00:54:53 -0300 Arthur Maciel <address@hidden> wrote:

> Well, now it I get another question:  does awful egg accepts irregex syntax
> instead of regex egg one? The documentation still suggests the use of regex
> egg.

Both regex and irregex should work.  Here's an example:

 (use awful irregex)

 (define-page (irregex '(seq "/foo/" (+ numeric)))
   (lambda (path)
     path))


http://<server>:<port>/foo/4 displays `/foo/4'
http://<server>:<port>/foo/bar produces a 404 error


Thanks for pointing that omission in the documentation.  I'm gonna fix
that.


Best wishes.
Mario
--
http://parenteses.org/mario


reply via email to

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