A Type Theoretic Treatment of Context-Free Languages Without Mutual Recursion

Conference Paper (2025)
Author(s)

Jaro Reinders (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Casper Bach (University of Southern Denmark)

Research Group
Programming Languages
DOI related publication
https://doi.org/10.1007/978-3-031-99751-8_12 Final published version
More Info
expand_more
Publication Year
2025
Language
English
Research Group
Programming Languages
Volume number
15652
Pages (from-to)
283-301
Publisher
Springer Nature
ISBN (print)
978-3-031-99750-1
ISBN (electronic)
978-3-031-99751-8
Downloads counter
51
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

Parsing is the process of recovering structure from strings, an essential part of implementing programming languages. Previous work has shown that formalizing languages and parsers using an idiomatic type theoretic approach can be simple and enlightening. Unfortunately, this approach has only been applied to regular languages, which are not expressive enough for many practical applications. We have extended the type theoretic formalization to context-free languages (without mutual recursion) which are substantially more expressive. We hope our formalization can serve as a foundation for reasoning about new disambiguation techniques and even more expressive formalisms such as data-dependent grammars.

Files

978-3-031-99751-8_12.pdf
(pdf | 0.809 Mb)
- Embargo expired in 04-05-2026
Taverne