I would need lexers for as many programming languages I could get, and I would need them to be written in ruby. Do you know any?
I don't want to have to write the lexers myself. I would like them to be ready made.
Geo
2009-03-19 13:39:35
Grammars exist for a lot of different languages. Just google for LALR grammars for a given language.
greyfade
2009-03-19 14:50:16
+1
A:
This might not fit you, but can I suggest you to take a look at Pygments for Python? I understand it might fall outside the scope of your question but this tool has support for a ton of languages and it provides a command-line tool so you can call it from Ruby.
Albino is a small Ruby wrapper for using Pygments from Ruby: http://gist.github.com/82824
Federico Builes
2009-03-21 12:21:15