unnali/rouge — pull request #23 by noprompt (2012-12-17 07:13:40+00:00)
Title: Fixes #22: Read code prior to evaluating it

So it looks like this could be a possible solution for #22. The basic idea is to read the code first before attempting to execute it. Since `Rouge::Context#readeval` rescues the `EndOfDataError` ([see here](https://github.com/unnali/rouge/blob/master/lib/rouge/context.rb#L70)) thrown by the reader, I thought this would be the way to go. The downside, of course, is processing the code twice.