Re: [Chicken-users] Regexp egg compilation error

2012-03-13 Thread Mario Domenech Goulart
Hi Arthur,

On Tue, 13 Mar 2012 00:54:53 -0300 Arthur Maciel arthurmac...@gmail.com 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

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Regexp egg compilation error

2012-03-13 Thread Arthur Maciel
Thank you, guys!

2012/3/13 Mario Domenech Goulart mario.goul...@gmail.com

 Hi Arthur,

 On Tue, 13 Mar 2012 00:54:53 -0300 Arthur Maciel arthurmac...@gmail.com
 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

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Regexp egg compilation error

2012-03-12 Thread Arthur Maciel
Hello! I'm getting the following error:

$ sudo chicken-install regexp
retrieving ...
resolving alias `kitten-technologies' to:
http://chicken.kitten-technologies.co.uk/henrietta.cgi
connecting to host chicken.kitten-technologies.co.uk, port 80 ...
TCP connect timeout
resolving alias `call-cc.org' to:
http://code.call-cc.org/cgi-bin/henrietta.cgi
connecting to host code.call-cc.org, port 80 ...
requesting /cgi-bin/henrietta.cgi?name=regexpmode=default ...
reading response ...
HTTP/1.1 200 OK
Date: Tue, 13 Mar 2012 02:49:21 GMT
Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 mod_ssl/2.2.9 OpenSSL/0.9.8g
Connection: close
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text/plain
reading chunks .
reading files ...
 regexp located at /tmp/temp5d09/regexp

Warning: extension `regexp' has no .meta file - assuming it has no
dependencies
install order:
()


Is the error mine of is the package compromised?

Thanks!
Arthur
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Regexp egg compilation error

2012-03-12 Thread Kon Lovett

I think the extension is called regex: http://wiki.call-cc.org/eggref/4/regex

BTW, this is for temporary backwards-compatibility. New code should use 
irregex: http://wiki.call-cc.org/man/4/Unit%20irregex

On Mar 12, 2012, at 8:14 PM, Arthur Maciel wrote:

 Hello! I'm getting the following error:
 
 $ sudo chicken-install regexp
 retrieving ...
 resolving alias `kitten-technologies' to: 
 http://chicken.kitten-technologies.co.uk/henrietta.cgi
 connecting to host chicken.kitten-technologies.co.uk, port 80 ...
 TCP connect timeout
 resolving alias `call-cc.org' to: 
 http://code.call-cc.org/cgi-bin/henrietta.cgi
 connecting to host code.call-cc.org, port 80 ...
 requesting /cgi-bin/henrietta.cgi?name=regexpmode=default ...
 reading response ...
 HTTP/1.1 200 OK
 Date: Tue, 13 Mar 2012 02:49:21 GMT
 Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 mod_ssl/2.2.9 OpenSSL/0.9.8g
 Connection: close
 Vary: Accept-Encoding
 Transfer-Encoding: chunked
 Content-Type: text/plain
 reading chunks .
 reading files ...
  regexp located at /tmp/temp5d09/regexp
 
 Warning: extension `regexp' has no .meta file - assuming it has no 
 dependencies
 install order:
 ()
 
 
 Is the error mine of is the package compromised?
 
 Thanks!
 Arthur
 ___
 Chicken-users mailing list
 Chicken-users@nongnu.org
 https://lists.nongnu.org/mailman/listinfo/chicken-users

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Regexp egg compilation error

2012-03-12 Thread Arthur Maciel
Oh, how silly I was!

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.

Thanks,
Arthur

2012/3/13 Kon Lovett konlov...@gmail.com


 I think the extension is called regex:
 http://wiki.call-cc.org/eggref/4/regex

 BTW, this is for temporary backwards-compatibility. New code should use
 irregex: http://wiki.call-cc.org/man/4/Unit%20irregex

 On Mar 12, 2012, at 8:14 PM, Arthur Maciel wrote:

 Hello! I'm getting the following error:

 $ sudo chicken-install regexp
 retrieving ...
 resolving alias `kitten-technologies' to:
 http://chicken.kitten-technologies.co.uk/henrietta.cgi
 connecting to host chicken.kitten-technologies.co.uk, port 80 ...
 TCP connect timeout
 resolving alias `call-cc.org' to:
 http://code.call-cc.org/cgi-bin/henrietta.cgi
 connecting to host code.call-cc.org, port 80 ...
 requesting /cgi-bin/henrietta.cgi?name=regexpmode=default ...
 reading response ...
 HTTP/1.1 200 OK
 Date: Tue, 13 Mar 2012 02:49:21 GMT
 Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 mod_ssl/2.2.9 OpenSSL/0.9.8g
 Connection: close
 Vary: Accept-Encoding
 Transfer-Encoding: chunked
 Content-Type: text/plain
 reading chunks .
 reading files ...
  regexp located at /tmp/temp5d09/regexp

 Warning: extension `regexp' has no .meta file - assuming it has no
 dependencies
 install order:
 ()
 

 Is the error mine of is the package compromised?

 Thanks!
 Arthur
 ___
 Chicken-users mailing list
 Chicken-users@nongnu.org
 https://lists.nongnu.org/mailman/listinfo/chicken-users



___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Regexp egg compilation error

2012-03-12 Thread Kon Lovett

On Mar 12, 2012, at 8:54 PM, Arthur Maciel wrote:

 Oh, how silly I was! 
 
 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.

AFAIK awful uses POSIX-style rather than SRE but since regex is a thin wrapper 
over irregex I suspect the result of an irregex constructor will be accepted.

 
 Thanks,
 Arthur
 
 2012/3/13 Kon Lovett konlov...@gmail.com
 
 I think the extension is called regex: 
 http://wiki.call-cc.org/eggref/4/regex
 
 BTW, this is for temporary backwards-compatibility. New code should use 
 irregex: http://wiki.call-cc.org/man/4/Unit%20irregex
 
 On Mar 12, 2012, at 8:14 PM, Arthur Maciel wrote:
 
 Hello! I'm getting the following error:
 
 $ sudo chicken-install regexp
 retrieving ...
 resolving alias `kitten-technologies' to: 
 http://chicken.kitten-technologies.co.uk/henrietta.cgi
 connecting to host chicken.kitten-technologies.co.uk, port 80 ...
 TCP connect timeout
 resolving alias `call-cc.org' to: 
 http://code.call-cc.org/cgi-bin/henrietta.cgi
 connecting to host code.call-cc.org, port 80 ...
 requesting /cgi-bin/henrietta.cgi?name=regexpmode=default ...
 reading response ...
 HTTP/1.1 200 OK
 Date: Tue, 13 Mar 2012 02:49:21 GMT
 Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 mod_ssl/2.2.9 OpenSSL/0.9.8g
 Connection: close
 Vary: Accept-Encoding
 Transfer-Encoding: chunked
 Content-Type: text/plain
 reading chunks .
 reading files ...
  regexp located at /tmp/temp5d09/regexp
 
 Warning: extension `regexp' has no .meta file - assuming it has no 
 dependencies
 install order:
 ()
 
 
 Is the error mine of is the package compromised?
 
 Thanks!
 Arthur
 ___
 Chicken-users mailing list
 Chicken-users@nongnu.org
 https://lists.nongnu.org/mailman/listinfo/chicken-users
 
 

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Regexp egg compilation error

2012-03-12 Thread Jim Ursetto
On Mar 12, 2012, at 10:19 PM, Kon Lovett wrote:

 
 I think the extension is called regex: 
 http://wiki.call-cc.org/eggref/4/regex
 
 BTW, this is for temporary backwards-compatibility. New code should use 
 irregex: http://wiki.call-cc.org/man/4/Unit%20irregex

Not just back-compat, regex also provides some convenience functions which can 
be more user-friendly (IMO) than irregex.  It also accepts irregex SREs.
Jim___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users