Syntactic Completions with Material Obligations
David Moon, Andrew Blinn, Thomas J. Porter, Cyrus Omar

TL;DR
This paper introduces talltylr, a novel parser and editor generator that handles syntax errors by completing malformed code with syntactic obligations, improving error recovery and developer assistance.
Contribution
It presents a new tile-based parsing theory and implementation that generalizes syntax error recovery through obligations, with formal guarantees and visual materialization for better usability.
Findings
Obligations help scaffold internal program representations.
Materializing obligations enhances user understanding and editing experience.
Formal guarantees ensure successful parsing over all inputs.
Abstract
Code editors provide essential services that help developers understand, navigate, and modify programs. However, these services often fail in the presence of syntax errors. Existing syntax error recovery techniques, like panic mode and multi-option repairs, are either too coarse, e.g. in deleting large swathes of code, or lead to a proliferation of possible completions. This paper introduces , an error-handling parser and editor generator that completes malformed code with that abstract over many possible completions. These obligations generalize the familiar notion of holes in structure editors to cover missing operands, operators, delimiters, and sort transitions. is backed by a novel theory of tile-based parsing, conceptually organized around a that turns tokens into tiles…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
