Write a Blog >>
Sun 22 - Fri 27 October 2017 Vancouver, Canada
Thu 26 Oct 2017 14:37 - 15:00 at Regency A - Mining Software Repositories and Parsing Chair(s): Wolfgang De Meuter

Precedence and associativity declarations in systems like yacc resolve ambiguities in context-free grammars (CFGs) by specifying restrictions on allowed parses. However, they are special purpose and do not handle many other grammatical restrictions that language designers need in order to resolve ambiguities like dangling else, the interactions between binary operators and functional if expressions in ML, and the interactions between object allocation and function calls in JavaScript. Often, language designers resort to restructuring their grammars in order to encode these restrictions, but this obfuscates the designer's intent and makes grammars difficult to read, write, and maintain.

In this paper, we show how tree automata can modularly and concisely encode such restrictions. We do this by reinterpreting CFGs as tree automata and intersecting them with tree automata encoding the desired restrictions. The results are then reinterpreted back into CFGs that encode the specified restrictions. This process can be used as a
preprocessing step before other CFG manipulations and is well behaved. It performs well in practice and never introduces ambiguities or LR($k$) conflicts.

Thu 26 Oct (GMT-07:00) Tijuana, Baja California change

13:30 - 15:00: OOPSLA - Mining Software Repositories and Parsing at Regency A
Chair(s): Wolfgang De MeuterVrije Universiteit Brussel
splash-2017-OOPSLA13:30 - 13:52
Samantha Syeda KhairunnesaIowa State University, Hoan Anh NguyenIowa State University, USA, Tien N. NguyenUniversity of Texas at Dallas, Hridesh RajanIowa State University
splash-2017-OOPSLA13:52 - 14:15
Crista LopesUniversity of California, Irvine, Petr MajReactorLabs, Pedro MartinsUniversity of California at Irvine, USA, Vaibhav SainiUniversity of California at Irvine, USA, Di YangUniversity of California at Irvine, USA, Jakub ZitnyCzech Technical University, Czechia, Hitesh SajnaniMicrosoft , Jan VitekNortheastern University, USA
splash-2017-OOPSLA14:15 - 14:37
Davood MazinanianConcordia University, Canada, Ameya KetkarOregon State University, USA, Nikolaos TsantalisConcordia University, Canada, Danny DigSchool of EECS at Oregon State University
splash-2017-OOPSLA14:37 - 15:00
Michael D. AdamsUniversity of Utah, USA, Matthew MightUniversity of Utah, USA