IRB needs this for calculating leading whitespace so it knows how to indent multi statements. If this can be done on the Ruby side, we should do it there, so keep the simplicity of the C parser.