negative matching using Smacc
Damien Pollet
damien.pollet at gmail.com
Sat Dec 30 14:37:42 UTC 2006
2006/12/30, Lukas Renggli <renggli at gmail.com>:
> Have a look at Pier (or SmallWiki) they do line-based paring using SmaCC.
Thanks, but in Pier's case there are simple patterns for all possible
line beginnings, e.g. \+\+ matches a non-link.
In my case if I want to match lines that don't begin with abc, I have
to write ([^a] | a[^b] | ab[^c]) .*
I actually have 4 keywords, each about 8 chars long, so the pattern is
already tedious to write...
--
Damien Pollet
type less, do more [ | ] http://typo.cdlm.fasmz.org
More information about the Squeak-dev
mailing list
|