Context-free general parsing and disambiguation algorithms are threaded throughout the research and engineering career of Eelco Visser. Both our Ph.D. theses featured the study of “disambiguation.” Disambiguation is the declarative definition of choices among different parse trees, derived using the same context-free grammar, for the same input sentence. This essay highlights the differences between syntactic disambiguation for context-free general parsing in a top-down architecture and a bottom-up architecture. The differences between top-down and bottom-up are mainly observed as practical aspects of the software architecture and software implementation. Eventually, the concept of data-dependent context-free grammar brings all engineering perspectives of disambiguation back into a conceptual (declarative) framework independent of the parsing architecture. The novelty in this essay is the juxtaposition of three general parsing architectures from a disambiguation point of view: SGLR, SGLL, and DDGLL. It also motivates design decisions in the parsing architectures for SDF{1,2} and Rascal with previously unpublished detail. The essay falls short of a literature review and a tool evaluation since it does not investigate the disambiguation methods of the many other parser generator tools that exist. The fact that only the implementation algorithms are different between the compared parsing architectures, while the syntax definition formalisms have practically the same formal semantics for historical reasons, nicely “isolates the variable” of interest. We hope this essay lives up to the enormous enthusiasm, curiosity, and drive for perfection in syntax definition and parsing that Eelco always radiated. We dearly miss him.

, , , , ,
doi.org/10.4230/OASIcs.EVCS.2023.31
Open Access Series in Informatics
Eelco Visser Commemorative Symposium, EVCS 2023
Centrum Wiskunde & Informatica, Amsterdam (CWI), The Netherlands

Vinju, J. (2023). Comparing bottom-up with top-down parsing architectures for the syntax definition formalism from a disambiguation standpoint. In Eelco Visser Commemorative Symposium, EVCS 2023. doi:10.4230/OASIcs.EVCS.2023.31