golex (again!)

279 views
Skip to first unread message

Arlen

unread,
Apr 25, 2011, 4:21:39 AM4/25/11
to golang-nuts
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
Reply all
Reply to author
Forward
0 new messages