Hi Derek,

By "incremental parsing" I don't think you mean "on demand loading of input" per Robert's response. I think you mean being able to reparse only those pieces of the input that have changed while editing. For this, you need to save the state as you say later, which is difficult for recursive descent parsers. Well, at least in a language like Java without continuations. Fortunately, you can fake this easily with recursive descent parsers. The idea was designed/prototyped by Prashant Deva, author of ANTLRStudio, and he and I will formalize, generalize, and integrate with ANTLR v3 after I get the first release out. Then, will write up and push out even if just to SIGPLAN notices.

Ter


_______________________________________________
PEG mailing list
PEG@lists.csail.mit.edu
https://lists.csail.mit.edu/mailman/listinfo/peg

Reply via email to