goddamn writing a recursive descent parser is a lot harder when you wanna do good syntax error recovery

@eniko
error recovery (and reporting) and also SOMEHOW the possibility of incremental parsing has eaten years of my life.

i don’t know if your parser is incremental but it’s a pretty big leap to try to find just the ast nodes associated with a certain character or source code edit.

@eniko
and source insertions are fairly straight forward but source deletions hahahaha just reparse the whole file.

@eniko
and on the topic of error recovery, thank goodness most IDEs automation insert a closing brace on typing ‘(‘ because otherwise the rest of your program is now a function argument.

i guess ive been looking at this from the perspective of interactive parsing for intellisense/ code completion. i suppose for more well formed documents the challenge is less severe.