Hi all,
I've seen quite a few requests for golex on the IRC channel and on the
mailing list over the last year or two, and I myself was looking for
the same thing a few days ago.
Like most, I ended up writing a custom lexer to tie into goyacc, but
eventually I realised I could generalise it. The product is a golex
which aims for maximum flex compatibility:
http://github.com/celtic/golex
Here's an example of the input:
http://github.com/celtic/golex/blob/master/cstyle.l
golex is still under development, but I hope you have a look, maybe
give it a try if you're looking for a lexer, and patches are most
welcome. :-)
Cheers,
Arlen