I'm going to play with Google's re2, thinking of adding it to Felix (since 
they're using
the same licence, the simplified BSD thing).

Maybe even replacing tre.

IMHO both these packages have a serious and stupid shortcoming: they process 
only
regular expression strings.

No programmer with any knowledge would every use regular expressions in
any language except Perl.

Rather, they'd want to use regular *definitions*, which Felix used to have.
In Perl, you have (a) special regexp string literals saving on doubling sloshes,
and (b) string interpolation, which gives you a crude form of regular 
definitions
anyhow.

Actually we could provide these, if only there were grouping symbols 
which (a) are meta-characters not characters and (b) do not represent
an extractible subgroup, but neither Posix nor Perl regexps have these AFAIK.
The workaround is to accept extraction, and throw the substring away and
renumber the extracts to get back the desired ordering (which is lame).

How is it that every time someone invents a "better moustetrap" it is
the same design as the last one with tweaks .. as if no one bothers
to think anymore?

[The boost regexp is another alternative, it is quite good I believe]

I'm thinking about all this because it makes sense to put 

match strexpr with | regex "hg(x*)jj": ?grp => ...

into the language again, only this time just using a library.

--
john skaller
skal...@users.sourceforge.net





------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to