class RubyLex
def each_top_level_statement
def each_top_level_statement loop do code = readmultiline break unless code if code != "\n" code.force_encoding(@io.encoding) yield code, @line_no end @line_no += code.count("\n") rescue TerminateLineInput end end