Incremental parsing #19
Replies: 5 comments 4 replies
-
I think it's definitely worth exploring |
Beta Was this translation helpful? Give feedback.
-
DFA cache itself resolves the problem of incremental parsing but I haven't investigate deeply what else is needed. |
Beta Was this translation helpful? Give feedback.
-
Yes, this would be super useful when editing code. Do you have any idea of how it could be implemented?
|
Beta Was this translation helpful? Give feedback.
-
The topic with incremental compilation is usefull and interesting, no doubt. But it makes sense to investigate how other parser deal with that, which data-structures use and so on. |
Beta Was this translation helpful? Give feedback.
-
Another example of solution implementing incremental parsing should be tree-sitter |
Beta Was this translation helpful? Give feedback.
-
Should ANTLR 5 consider supporting incremental parsing as an option?
I am not sure where is the line for new features in ANTLR 5, so perhaps that is too big of a change, but I guess this is what discussions are for :)
While the disadvantage is more work and probably some significant complications, the advantages would be:
Beta Was this translation helpful? Give feedback.
All reactions