this.line =1;
var tokens = new TokenArray();
-
- while (!stream.look().eof) {
+ bool eof;
+ while (true) {
+
+ stream.look(0, out eof)
+ if (eof) {
+ break;
+ }
if (this.read_mlcomment(stream, tokens)) continue;
if (this.read_slcomment(stream, tokens)) continue;
if (this.read_dbquote(stream, tokens)) continue;