scsh-users
[Top] [All Lists]

Regexp notation

To: shivers@ai.mit.edu
Subject: Regexp notation
From: Alan Bawden <Alan@lcs.mit.edu>
Date: Wed, 8 Jan 1997 19:47:27 -0500
Cc: scsh@martigny.ai.mit.edu
Sender: Alan@lcs.mit.edu
   Date: 08 Jan 1997 12:55:30 -0500
   From: Olin Shivers <shivers@ai.mit.edu>
       (* <regex> ...)          0 or more matches

I, too, am puzzled by the "..." here (and in several of the others).

        `(let* ((any (* "dog"))) ,(computed-regexp-goes-here))

Looking at examples like this make me realize that what I really want isn't
an S-expression notation for regular languages.  What I really want is a
toolkit of procedures that operate on regular languages.  E.g.

  (let ((digit (re:range #\0 #\9)))
    (re:concatenate (re:or "+" "-" "")
                    (re:one-or-more digit)))

<Prev in Thread] Current Thread [Next in Thread>