Re:Rust Analyzer in 2018 and 2019
by skybrian on Tuesday December 18, 2018 @12:39AM
(#18704751)
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!
Most programming languages aren't designed for parsing backwards, though!