using RegularExpressions for matching (was Re: deficience in Squeak)

Marcus Denker marcus at ira.uka.de
Sun Nov 30 14:42:42 UTC 2003


Am 30.11.2003 um 14:27 schrieb Jason Rogers:

> On Sat, 29 Nov 2003 21:08:31 -0500, "Andrew C. Greenberg"
> <werdna at mucow.com> said:
> <snipped/>
>
> I will put my vote in... please make it part of the Basic.

I, too, would like to see regular expressions in Squeak... but I think
if we add them, we need to make sure that it is Ok to aktually use
them for Squeak itself...

As Andrew said: This would make the plugin required even for
the most basic Squeak install... do we want this? I am no fan of
"Not invented here", but we need to be sure what the consequences
are...

There is one interesting alternative: The SmaCC Scanner-Generator
contains a complete RegExp implementation. It compiles the regexps
used in the description of the scanner to Squeak code. It would be 
interesting
to see a) how large the overhead is to compile a regexp and b) How fast
the resulting code is... no idea.

These regexps are only used for building scanners up to now, so this
would need some work to be a general regexp package.

     Marcus

--
Marcus Denker marcus at ira.uka.de




More information about the Squeak-dev mailing list