[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
repeating patterns and ...
This page is part of the web mail archives of SRFI 115 from before July 7th, 2015. The new archives for SRFI 115 contain all messages, not just those from before July 7th, 2015.
- To: srfi-115@xxxxxxxxxxxxxxxxx
- Subject: repeating patterns and ...
- From: Michael Montague <mikemon@xxxxxxxxx>
- Date: Wed, 16 Oct 2013 20:31:54 -0700
- Delivered-to: srfi-115@xxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=sMzOuMMcG0NbKZmH8OGKlW157CLJtjxtON0ATz5CKSw=; b=Z0LxwHEhaZwqh9hjjo6yvgxZ8mnqIqbi/Xi0K+RHcfxc++xpiQbpd/+u5j76FUju4B Ikt5FJxJunbcZGvKgcBCQAPJrzCr3yLCiIF2q/Cf+FJyvj/ifYH/D7X2xNN3EX0lgRdm exOUOnsOYen4JFir9Fs6lCWSSZyNrNNhwbJgi/13Yj/Rf8l6Y5wno5KUU2hpanYwBEDF 2dNvUdfB/wwdMI38zgU+RkRb7SwihtkB5hokcPR5oziRJamTGBDhnFYAGYabgCjoFnYu qphtb8TGP/Ody2TtKPhd1Xnx0ax7x4LlZioviXXqiW+ZEEOdIe29k8gwrFGvdpKAO3tS woAg==
- User-agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1
Scheme already has one way of specifying repeating patterns: ... How
about using similar syntax for regular expressions?
(* <sre>) would change to (<sre> ...)
The general case of (** <from> <to> <sre>) could change to (<sre> ...
<from> <to>)
or to (<sre> (... <from> <to>))
(? <sre>) changes to (<sre> ... 0 1) or to (<sre> (... 0 1))
(+ <sre>) changes to (<sre> ... 1) or to (<sre> (... 1))
Michael.