Traditional compilers assume complete and syntactically correct input, making them ill-suited for modern interactive programming environments, where code is often incomplete or erroneous.
This paper examines how error-tolerant parsing, crucial for modern Integrate
...
Traditional compilers assume complete and syntactically correct input, making them ill-suited for modern interactive programming environments, where code is often incomplete or erroneous.
This paper examines how error-tolerant parsing, crucial for modern Integrated Development Environment (IDE) support, can be implemented in the Hylo programming language, which currently lacks this capability.
We identify key techniques from state-of-the-art compilers such as Roslyn and IntelliJ, including phrase-level recovery, token synchronization, combinator resilience, and Abstract Syntax Tree (AST) placeholders.
We evaluated their suitability for Hylo's architecture and implemented a prototype demonstrating AST placeholder integration.
This approach moves beyond the 'halt-on-first-error' model, enabling the parser to continue processing despite errors, producing a structurally sound abstract syntax tree annotated with diagnostics.
Our work highlights the potential of error-tolerant parsing to enhance developer experience in emerging languages and lays the foundation for IDE support and interactive tooling in the Hylo ecosystem.