RubyGems Navigation menu

rubylexer 0.7.7

RubyLexer is a lexer library for Ruby, written in Ruby. Rubylexer is meant as a lexer for Ruby that's complete and correct; all legal Ruby code should be lexed correctly by RubyLexer as well. Just enough parsing capability is included to give RubyLexer enough context to tokenize correctly in all cases. (This turned out to be more parsing than I had thought or wanted to take on at first.) RubyLexer handles the hard things like complicated strings, the ambiguous nature of some punctuation characters and keywords in ruby, and distinguishing methods and local variables. RubyLexer is not particularly clean code. As I progressed in writing this, I've learned a little about how these things are supposed to be done; the lexer is not supposed to have any state of it's own, instead it gets whatever it needs to know from the parser. As a stand-alone lexer, Rubylexer maintains quite a lot of state. Every instance variable in the RubyLexer class is some sort of lexer state. Most of the complication and ugly code in RubyLexer is in maintaining or using this state.

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

  1. 0.8.0 - August 12, 2016 (360.0 KB)
  2. 0.7.7 - January 03, 2010 (331.5 KB)
  3. 0.7.6 - August 05, 2009 (329.5 KB)
  4. 0.7.5 - May 23, 2009* (329.0 KB)
  5. 0.7.4 - May 22, 2009* (329.0 KB)
顯示所有版本(共 10)

Runtime 相依性套件 (1):

sequence >= 0.2.3

擁有者:

作者:

  • Caleb Clausen

SHA 256 checksum:

9d7e238eb29de88a4d8d5a102ad5d2a7277529db3208f6f67e9fcc742e7eff3f

總下載次數 36,121

這個版本 5,019

License:

Ruby 版本需求:

相關連結: