Re: trying to understand irb: why does it have its own lexer, instead of forwarding input to ruby ?



Robert and Tim, thank you for your clear explanations.

As mentioned before, I want to extend the ruby language.
Specifically, I want to twist the interpreter so that it expands
for instance w8s6ny into w[8].s[6].y.size(). Do you experts
think this can be achieved by modifying IRB's ruby code,
without diving into Ruby's C code?

Kind regards, Joachim

.



Relevant Pages