Re: regular expressions (bug-report)

kanze@us-es.sel.de (James Kanze)
Fri, 26 Mar 1993 10:46:03 GMT

          From comp.compilers

Related articles
regular expressions (bug-report) megatest!plethorax!djones@uu4.psi.com (1993-03-14)
Re: regular expressions (bug-report) Paul.Klint@cwi.nl (1993-03-15)
Re: regular expressions (bug-report) mab@wdl39.wdl.loral.com (1993-03-15)
regular expressions (bug-report) jos@thinx.convex.com (Jos Horsmeier) (1993-03-16)
Re: regular expressions (bug-report) pardo@cs.washington.edu (1993-03-19)
Re: regular expressions (bug-report) henry@zoo.toronto.edu (1993-03-25)
Re: regular expressions (bug-report) kanze@us-es.sel.de (1993-03-26)
| List of all articles for this month |
Newsgroups: comp.compilers
From: kanze@us-es.sel.de (James Kanze)
Keywords: DFA, performance
Organization: Compilers Central
References: 93-03-046 93-03-050
Date: Fri, 26 Mar 1993 10:46:03 GMT

mab@wdl39.wdl.loral.com (Mark A Biggar) writes:
|> 2) DFA based pattern matches don't handle [A-Z] well (a major resaon why
|> they get so big).


I wonder about this.


My regular expression class uses lazy evaluation of a DFA, and has no
problems with the above. In fact, a character class (represented as a set
of characters, implemented as a bit vector) is the *only* type a leaf node
can have in the parse of the regular expression. Single characters (and
the special character '.') are only special cases of a character class.
--
James Kanze email: kanze@us-es.sel.de
GABI Software, Sarl., 8 rue du Faisan, F-67000 Strasbourg, France
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.