tags:

views:

92

answers:

2

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?

+2  A: 

Would RACC be useful to you?

greyfade
I don't want to have to write the lexers myself. I would like them to be ready made.
Geo
Grammars exist for a lot of different languages. Just google for LALR grammars for a given language.
greyfade
+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