J
Joachim (München)
Dear experts,
I consider (ab)using irb as a starting point for developing a
scripteable
command interpreter for a special-purpose application. Before
deciding on this design, I need to better understand how irb works.
As far as I can see, input to irb is not forwarded to ruby's
interpreter
(which written in C and using yacc, if I understand correctly);
instead, irb has its own interpreter (written in ruby) which basically
duplicates ruby's interpreter.
Could you possibly explain me the reasons for this design decision?
Thank you very much, Joachim
I consider (ab)using irb as a starting point for developing a
scripteable
command interpreter for a special-purpose application. Before
deciding on this design, I need to better understand how irb works.
As far as I can see, input to irb is not forwarded to ruby's
interpreter
(which written in C and using yacc, if I understand correctly);
instead, irb has its own interpreter (written in ruby) which basically
duplicates ruby's interpreter.
Could you possibly explain me the reasons for this design decision?
Thank you very much, Joachim