From: Daniel Brumbaugh Keeney Date: 2008-03-09T03:09:41+09:00 Subject: Re: Ruby tools to develop compilers On Wed, Mar 5, 2008 at 2:47 PM, Daniel Brumbaugh Keeney wrote: > Ruby-lex isn't a lexer written in Ruby usable for other grammars, it > is a lexer for the ruby language itself. Please forgive my error, I was thinking of the RubyLex class included in IRB. It appears there is a project of the same name that can be found at the links below. To add to the confusion, RubyLex files end in .rl, the same as Ragel. For the education of this mailing list, I've copied the introduction of its README. Lexical analyzer generator V1.3 by Harald Grosse. This extension adds to ruby a functionality to work with lex for C programs as well as for ruby Code. It reads the grammar specification, modify the code so that lex accepted the ruby elements, compile this code with flex to lex.yy.c and build an comparable Ruby coded analayzer from this file. Not all features of lex are implemented. http://raa.ruby-lang.org/project/ruby-lex/ http://www.less.de/download/ruby-lex-1.4.tgz Daniel Brumbaugh Keeney