[darcs-users] Applying formal descriptions to files

Trent W. Buck trentbuck at gmail.com
Sun Feb 8 06:13:33 UTC 2009

"Max Battcher" <me at worldmaker.net> writes:

> * Lexers are fast.
> * Lexers preserve the formatting of documents.
> * Lexers are dumb, but recover quickly from errors.  (Ever watched your
> editor's lexers twist through error states as you type?)

Emacs, at least, does not perform "proper" lexical analysis (except
perhaps nxml).  That is, Emacs does not turn a stream of codepoints into
a stream of lexical tokens.  Instead, it invariably just uses a bunch of
*separate* regular expressions to overlay faces on matching regions of

More information about the darcs-users mailing list