From: Caleb Clausen Date: 2010-07-27T03:11:22+09:00 Subject: Re: General delimiters On 7/25/10, Иван Сташко wrote: > --------- Question > > I think code would be more readable if I could type, > > a = %e "This 73 brqx" I have in the past created preprocessors to achieve this type of effect, based on my library RubyLexer. RubyLexer turns ruby source into a stream of tokens, which can then be converted back to the same source code. It can fairly easily be extended to recognize new token types. And it's all written in ruby, so understanding and modifying the MRI lexer c code is not necessary. I believe this would be much easier to do than hacking on MRI c code, but it is nowhere near as easy as redefining operators is. There is some knowledge of RubyLexer internals required, tho, and I can help you with this if you'd like to try.