home_run actually does borrow some code from ruby's standard library. Because of the complexity of the standard library parsing code, I determined it would be very difficult and error prone to rewrite it in C and keep full backwards compatibility.
So home_run uses a modified version of the standard libraries' parsing code, with two important modifications.