3 ms·
It seems like parsing both forwards in the normal way and backwards from the end of the file would be helpful? That is, take the longest suffix that parses corr
by skybrian 8y ago
It seems like parsing both forwards in the normal way and backwards from the end of the file would be helpful? That is, take the longest suffix that parses correctly and assume any syntax errors are before that for error-reporting purposes.
Most programming languages aren't designed for parsing backwards, though!
- hinkley 8y agoBackward in time, not a linear file scan.