()
| 81 | } |
| 82 | |
| 83 | parse(): Table { |
| 84 | while (true) { |
| 85 | this.skipWhitespace() |
| 86 | if (this.done) { |
| 87 | return this.root |
| 88 | } |
| 89 | if (this.peek() === "[") { |
| 90 | this.parseHeader() |
| 91 | } else { |
| 92 | const keys = this.parseKeyPath("=") |
| 93 | this.skipInlineWhitespace() |
| 94 | this.expect("=") |
| 95 | this.skipInlineWhitespace() |
| 96 | this.assign(this.current, keys, this.parseValue()) |
| 97 | this.finishStatement() |
| 98 | } |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | private parseHeader(): void { |
| 103 | this.expect("[") |
no test coverage detected