12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
-
- "use strict";
-
-
-
-
-
-
- module.exports = class Cursor {
-
-
-
- constructor() {
- this.current = null;
- }
-
-
-
- getOneToken() {
- return this.moveNext() ? this.current : null;
- }
-
-
-
- getAllTokens() {
- const tokens = [];
-
- while (this.moveNext()) {
- tokens.push(this.current);
- }
-
- return tokens;
- }
-
-
-
-
- moveNext() {
- throw new Error("Not implemented.");
- }
- };
|