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

Mark A. Schwenk mas at wellthot.com
Sun Nov 30 16:07:35 UTC 2003


On Sun, 2003-11-30 at 08:42, Marcus Denker wrote:
> 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.

Vassili Bykov has also released a native Smalltalk regular expression
package. The latest version is probably available from the Cincom Public
Store Repository. Here's the license from the 1.1 version which is
available at http://www.magma.ca/~vassili/Regex/:

The Regular Expression Matcher (``The Software'')
is Copyright (C) 1996, 1999 Vassili Bykov.
It is provided to the Smalltalk community in hope it will be useful.
                                                                                
1. This license applies to the package as a whole, as well as to any
   component of it. By performing any of the activities described
   below, you accept the terms of this agreement.
                                                                                
2. The software is provided free of charge, and ``as is'', in hope
   that it will be useful, with ABSOLUTELY NO WARRANTY. The entire
   risk and all responsibility for the use of the software is with
   you.  Under no circumstances the author may be held responsible for
   loss of data, loss of profit, or any other damage resulting
   directly or indirectly from the use of the software, even if the
   damage is caused by defects in the software.
                                                                                
3. You may use this software in any applications you build.
                                                                                
4. You may distribute this software provided that the software
   documentation and copyright notices are included and intact.
                                                                                
5. You may create and distribute modified versions of the software,
   such as ports to other Smalltalk dialects or derived work, provided
   that:
                                                                                
   a. any modified version is expressly marked as such and is not
   misrepresented as the original software;
                                                                                
   b. credit is given to the original software in the source code and
   documentation of the derived work;
                                                                                
   c. the copyright notice at the top of this document accompanies
   copyright notices of any modified version.  




More information about the Squeak-dev mailing list