I'm playing with CodeMirror, a browser-based editor written in JavaScript. It has a pluggable syntax highlighting component. I'd like to be able to take standard lex files for an arbitrary language and generate a lexer in JavaScript that I could plug into CodeMirror. Is there such a lexer generator available?
Asked
Active
Viewed 217 times
1
-
possible duplicate of [Lexer written in Javascript?](http://stackoverflow.com/questions/1823612/lexer-written-in-javascript) – Bergi Sep 27 '12 at 22:15
-
@Bergi : I saw that, but I need something that would accept a lex file as input. – Bartosz Milewski Sep 27 '12 at 23:17