[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.



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.