(signal_eof, in_string)
| 295 | function peek() { return S.text.charAt(S.pos); }; |
| 296 | |
| 297 | function next(signal_eof, in_string) { |
| 298 | var ch = S.text.charAt(S.pos++); |
| 299 | if (signal_eof && !ch) |
| 300 | throw EX_EOF; |
| 301 | if (ch == "\n") { |
| 302 | S.newline_before = S.newline_before || !in_string; |
| 303 | ++S.line; |
| 304 | S.col = 0; |
| 305 | } else { |
| 306 | ++S.col; |
| 307 | } |
| 308 | return ch; |
| 309 | }; |
| 310 | |
| 311 | function eof() { |
| 312 | return !S.peek(); |
no test coverage detected