3 ms·
A good point, but I think the books and languages didn't have much choice until recently. There really is a big jump in complexity from using a few regexes in a
by _delirium 16y ago
A good point, but I think the books and languages didn't have much choice until recently. There really is a big jump in complexity from using a few regexes in a program, and going full-on into a parser using lex/yacc (or your language's port, like javacc).
I think it's only been very recently that there's been a growth in parsing paradigms that are more amenable to inclusion as libraries with ease-of-use at least vaguely comparable to regexes. Things like combinator-style parser libraries (Parsec and similar libraries in other languages), and OMeta (http://tinlizzie.org/ometa/ http://tinlizzie.org/ometa/).