[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Regular expressions
From: |
Ludovic Courtès |
Subject: |
Regular expressions |
Date: |
Fri, 19 May 2006 14:12:36 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
Hi,
"Jason Meade" <address@hidden> writes:
> Is there a standard for regular expressions somewhere?
Some Scheme implementations (e.g., Bigloo [0]) use S-expressions to
represent regexps. It has the advantage of being (i)
syntax-independent, (ii) easier to understand, and (iii) it could be
used as a back-end to a variety of different syntaxes.
Actually, Bigloo uses `pregexp' [1] which should work on any R5RS
implementation. It uses the S-exp representation at its core but can
convert a "typical" regexp string into it. The issue is that it's
unclear whether this syntax is compatible with POSIX, Perl, or only with
itself. However, one could implement a converter from any particular
regexp syntax to S-exps.
In practice, `pregexp' on Guile may end up being much slower than the
available native implementations, though...
Thanks,
Ludovic.
[0] http://www-sop.inria.fr/mimosa/fp/Bigloo/doc/bigloo.pdf
[1] http://www.ccs.neu.edu/home/dorai/pregexp/pregexp.html
- Emacs-like file buffers, Jason Meade, 2006/05/07
- Re: Emacs-like file buffers, Rob Browning, 2006/05/07
- Re: Emacs-like file buffers, Kevin Ryde, 2006/05/08
- Re: Emacs-like file buffers, Rob Browning, 2006/05/08
- Re: Emacs-like file buffers, Kevin Ryde, 2006/05/12
- Re: Emacs-like file buffers, Rob Browning, 2006/05/13
- Message not available
- Message not available
- Message not available
- Fwd: Emacs-like file buffers, Jason Meade, 2006/05/13
- Re: Fwd: Emacs-like file buffers, Bruce Korb, 2006/05/14
- Re: Fwd: Emacs-like file buffers, Kevin Ryde, 2006/05/14
- Re: Fwd: Emacs-like file buffers, Kevin Ryde, 2006/05/14
- Regular expressions,
Ludovic Courtès <=