- return this.text[this.cursor+n];
- },
-
- public char next(int n = 1, out bool eof)
+ return this.text[this.cursor+n]; // this.text.get_char(this.cursor+n);
+ }
+
+ public bool lookEOF(int n = 0)
+ {
+ if (this.cursor+n < 0 || this.cursor+n >= this.length) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @param n - number of characters to return..
+ */
+ public string next(int n = 1)