Pest control: A formal model of the Pest parser generator
Parsing expressions grammars (PEGs) are a recognition-based formalism for parsers, which has been gaining popularity because they avoid some problems present in context-free grammar based specifications. In the context of the Rust programming language, the most used PEG-based parser generator is Pest. An interesting feature of Pest grammars is that they support new operators for repetition and handling an implicit stack during parsing. In this work, we propose a formalization of these new constructs and extend a type inference algorithm which guarantee that all well-typed Pest-style grammars do not loop on inputs.
Authors
- Elton M. Cardoso (ORCID: https://orcid.org/0000-0003-4174-8616)
- Rodrigo Ribeiro (ORCID: https://orcid.org/0000-0003-0131-5154)
- Leonardo Vieira dos Santos Reis (ORCID: https://orcid.org/0000-0002-1167-5332)
- Guilherme Daher
Institutions
- Universidade Federal de Juiz de Fora (BR)
Publication Details
- Published
- 2025-09-22
- DOI
- https://doi.org/10.5753/sblp.2025.10399
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00