(text: string)
| 996 | } |
| 997 | |
| 998 | static * tokensFrom(text: string): Iterable<Token> { |
| 999 | const scanner = new Scanner(text).start(); |
| 1000 | while (!scanner.eof) { |
| 1001 | yield scanner.take(); |
| 1002 | } |
| 1003 | } |
| 1004 | |
| 1005 | protected assert(assertion: boolean, message: string) { |
| 1006 | if (!assertion) { |