[MarkLogic Dev General] bounty hunting - lexer for pygments on github.com
spig
spig at spig.net
Thu Sep 30 22:44:27 PDT 2010
I've publicly committed a rough implementation of a lexer for XQuery for the
Pygments syntax highlighter. It uses regular expressions and state to keep
track of parsing of the XQuery and XPath. It is not perfect yet and has a
bit more work to be done. I remember doing parse trees and compilers as a
computer science course and, yes, it is still loads of fun :)
I've put the code up on github.com (how appropriate since github uses
pygments) and it is available for perusal. I still plan on making it better.
It's a hard problem to solve well. Thanks Michael for the motivation to do
it right.
http://github.com/spig/pygments-xquery-lexer
--
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20100930/18a8ec0a/attachment.html
More information about the General
mailing list