RubyGems Navigation menu

oedipus_lex 2.1.0

Oedipus Lex is a lexer generator in the same family as Rexical and Rex. Oedipus Lex is my independent lexer fork of Rexical. Rexical was in turn a fork of Rex. We've been unable to contact the author of rex in order to take it over, fix it up, extend it, and relicense it to MIT. So, Oedipus was written clean-room in order to bypass licensing constraints (and because bootstrapping is fun). Oedipus brings a lot of extras to the table and at this point is only historically related to rexical. The syntax has changed enough that any rexical lexer will have to be tweaked to work inside of oedipus. At the very least, you need to add slashes to all your regexps. Oedipus, like rexical, is based primarily on generating code much like you would a hand-written lexer. It is _not_ a table or hash driven lexer. It use StrScanner within a multi-level case statement. As such, Oedipus matches on the _first_ match, not the longest (like lex and its ilk). This documentation is not meant to bypass any prerequisite knowledge on lexing or parsing. If you'd like to study the subject in further detail, please try [TIN321] or the [LLVM Tutorial] or some other good resource for CS learning. Books... books are good. I like books.

Versions:

  1. 2.4.0 - August 30, 2014 (25.5 KB)
  2. 2.3.2 - August 7, 2014 (25 KB)
  3. 2.3.1 - June 10, 2014 (25 KB)
  4. 2.3.0 - May 16, 2014 (25 KB)
  5. 2.2.1 - April 2, 2014 (24 KB)
Show all versions (8 total)

Authors:

  • Ryan Davis

Owners:

5a837592409354297424994e8d62f722

Total downloads 2,633

For this version 406

Show all versions (8 total)

Required Ruby Version: None

Licenses:

MIT

Gemfile:
gem 'oedipus_lex', '~> 2.1.0' = Copy to clipboard Copied!

install:
gem install oedipus_lex -v 2.1.0 = Copy to clipboard Copied!

Links: