On Wed, Apr 27, 2005, Paul J Stevens <[EMAIL PROTECTED]> said:

> I just wrote a little ditty called dm_pcre_split (heh, like php). Stuff
> like that will be very useful in the imap command parser, without having
> to resort to a full fledged lex/yacc parser.

I've been meaning to suggest that a lex/yacc parser probably wouldn't help
either in speed or in code maintainability, although once it's working
would certainly help with making a tree out of some of the potentially
very complex IMAP queries.

If anything, I'd try using the lexer in Glib together with Bison. Regexes
probably won't be able to help with complex nested queries, however.

Aaron

Reply via email to