()
| 111 | } |
| 112 | |
| 113 | function read () { |
| 114 | const c = peek() |
| 115 | |
| 116 | if (c === '\n') { |
| 117 | line++ |
| 118 | column = 0 |
| 119 | } else if (c) { |
| 120 | column += c.length |
| 121 | } else { |
| 122 | column++ |
| 123 | } |
| 124 | |
| 125 | if (c) { |
| 126 | pos += c.length |
| 127 | } |
| 128 | |
| 129 | return c |
| 130 | } |
| 131 | |
| 132 | const lexStates = { |
| 133 | default () { |
no test coverage detected
searching dependent graphs…