}
return this.text[this.cursor+n];
},
+
+ public bool lookEOF(int n = 0)
+ {
+ if (this.cursor+n < 0 || this.cursor+n >= this.text.length) {
+ return true;
+ }
+ return false
+ },
+
public char next(int n = 1, out bool eof)
{
eof = false;
- if (n < 1) {
+ if (n < 1) { //?? eof???
return '\0';
}