3 ms·
Incremental parsing really isn't that hard: just cache the trees and damage/repair appropriately. I'm not sure if Haskell will be much of an advantage there; I
by seanmcdirmid 12y ago
Incremental parsing really isn't that hard: just cache the trees and damage/repair appropriately. I'm not sure if Haskell will be much of an advantage there; I found my own frameworks to be incredibly stateful...to the point that I designed Glitch to replace FRP to solve this specific problem.
Incremental parsing is also the first step toward incremental type checking :)
The post is a bit wrong, there have been incremental parsing frameworks in the past (see Tim Wagner and Susan Graham's work on Harmonia at UCB). But I've never been able to use them very well, and the problem is simple enough that cache/damage/repair is good enough (actually for type checking also).