Do you know any ruby ​​lexers that I could use in the app?

I need lexers for as many programming languages ​​that I could get, and I need them to be written in ruby. Do you know anyone?

+3
source share
3 answers

Would a RACC be useful ?

You can combine it with REX to generate your lexer.

+5
source

RACC is not a lexer. This is a parser generator. REX is a lexer, and it is ready, it is a ruby ​​implementation of lex.

Another lexer for ruby. I think it's called ruby-lex.

+2
source

, Pygments Python? , , , , Ruby.

Albino is a small Ruby shell for using Pyigs from Ruby: http://gist.github.com/82824

0
source

Source: https://habr.com/ru/post/1704981/


All Articles