Damian Frolich
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Damian Frolich has a total of 4 co-authors. Here are the top co-authors by number of shared publications:
- L. Thomas van Binsbergen
Informatics Institute University of Amsterdam Science Park 900 1098 XH Amsterdam The Netherlands
5 shared publications - Tommaso Pacciani
University of Amsterdam, Amsterdam, Netherlands
2 shared publications - Chrysa Papagianni
University of Amsterdam, Amsterdam, The Netherlands
1 shared publication L. Thomas van Binsbergen
Univ Amsterdam, Informat Inst, Postbus 94216, NL-1090 GE Amsterdam, Netherlands
1 shared publication
Latest Publications
- Open Access
- 27 June 2025
- Published by Association for Computing Machinery (ACM)
- p. 54-66
P4DDG: Data-Dependent Grammars for Packet Specification and Parsing in P4
- 27 June 2025
- Published by Association for Computing Machinery (ACM)
- p. 54-66
Open AccessP4DDG: Data-Dependent Grammars for Packet Specification and Parsing in P4
- Open Access
- 12 June 2025
- Published by Association for Computing Machinery (ACM)
- p. 134-147
Exploratory, Omniscient, and Multiverse Diagnostics in Debuggers for Non-Deterministic Languages
- 12 June 2025
- Published by Association for Computing Machinery (ACM)
- p. 134-147
Open AccessExploratory, Omniscient, and Multiverse Diagnostics in Debuggers for Non-Deterministic Languages
- Open Access
- 21 October 2024
- Published by Association for Computing Machinery (ACM)
- p. 107-120
On the Soundness of Auto-completion Services for Dynamically Typed Languages
Giving auto-completion candidates for dynamically typed languages requires complex analysis of the source code, especially when the goal is to ensure that the completion candidates do not introduce bugs. In this paper, we introduce an approach that builds upon abstract interpretation and the scope graph framework to obtain an over-approximation of the name binding seen at run-time. The over-approximation contains enough information to implement auto-completion services such that the given suggestions do not introduce name binding errors. To demonstrate our approach, we compare the suggestions given by our approach with the state of the art completion services on a subset of the Python programming language.
- 21 October 2024
- Published by Association for Computing Machinery (ACM)
- p. 107-120
Open AccessOn the Soundness of Auto-completion Services for Dynamically Typed Languages
Giving auto-completion candidates for dynamically typed languages requires complex analysis of the source code, especially when the goal is to ensure that the completion candidates do not introduce bugs. In this paper, we introduce an approach that builds upon abstract interpretation and the scope graph framework to obtain an over-approximation of the name binding seen at run-time. The over-approximation contains enough information to implement auto-completion services such that the given suggestions do not introduce name binding errors. To demonstrate our approach, we compare the suggestions given by our approach with the state of the art completion services on a subset of the Python programming language.
- Open Access
- 30 January 2024
- Published by Elsevier in Journal of Systems and Software
- Vol. 211
: An extensible meta-language with support for exploratory language development- 30 January 2024
- Published by Elsevier in Journal of Systems and Software
- Vol. 211
Open Access: An extensible meta-language with support for exploratory language development - Open Access
Happy-GLL: modular, reusable and complete top-down parsers for parameterized nonterminals
Parser generators and parser combinator libraries are the most popular tools for producing parsers. Parser combinators use the host language to provide reusable components in the form of higher-order functions with parsers as parameters. Very few parser generators support this kind of reuse through abstraction and even fewer generate parsers that are as modular and reusable as the parts of the grammar for which they are produced. This paper presents a strategy for generating modular, reusable and complete top-down parsers from syntax descriptions with parameterized nonterminals, based on the FUN-GLL variant of the GLL algorithm. The strategy is discussed and demonstrated as a novel back-end for the Happy parser generator. Happy grammars can contain `parameterized nonterminals' in which parameters abstract over grammar symbols, granting an abstraction mechanism to define reusable grammar operators. However, the existing Happy back-ends do not deliver on the full potential of parameterized nonterminals as parameterized nonterminals cannot be reused across grammars. Moreover, the parser generation process may fail to terminate or may result in exponentially large parsers generated in an exponential amount of time. The GLL back-end presented in this paper implements parameterized nonterminals successfully by generating higher-order functions that resemble parser combinators, inheriting all the advantages of top-down parsing. The back-end is capable of generating parsers for the full class of context-free grammars, generates parsers in linear time and generates parsers that find all derivations of the input string. To our knowledge, the presented GLL back-end makes Happy the first parser generator that combines all these features. This paper describes the translation procedure of the GLL back-end and compares it to the LALR and GLR back-ends of Happy in several experiments.
Open AccessHappy-GLL: modular, reusable and complete top-down parsers for parameterized nonterminals
Parser generators and parser combinator libraries are the most popular tools for producing parsers. Parser combinators use the host language to provide reusable components in the form of higher-order functions with parsers as parameters. Very few parser generators support this kind of reuse through abstraction and even fewer generate parsers that are as modular and reusable as the parts of the grammar for which they are produced. This paper presents a strategy for generating modular, reusable and complete top-down parsers from syntax descriptions with parameterized nonterminals, based on the FUN-GLL variant of the GLL algorithm. The strategy is discussed and demonstrated as a novel back-end for the Happy parser generator. Happy grammars can contain `parameterized nonterminals' in which parameters abstract over grammar symbols, granting an abstraction mechanism to define reusable grammar operators. However, the existing Happy back-ends do not deliver on the full potential of parameterized nonterminals as parameterized nonterminals cannot be reused across grammars. Moreover, the parser generation process may fail to terminate or may result in exponentially large parsers generated in an exponential amount of time. The GLL back-end presented in this paper implements parameterized nonterminals successfully by generating higher-order functions that resemble parser combinators, inheriting all the advantages of top-down parsing. The back-end is capable of generating parsers for the full class of context-free grammars, generates parsers in linear time and generates parsers that find all derivations of the input string. To our knowledge, the presented GLL back-end makes Happy the first parser generator that combines all these features. This paper describes the translation procedure of the GLL back-end and compares it to the LALR and GLR back-ends of Happy in several experiments.