pith. sign in

arxiv: 1105.2576 · v2 · pith:RMSH557Xnew · submitted 2011-05-12 · 💻 cs.LO · cs.FL· cs.PL

TRX: A Formally Verified Parser Interpreter

classification 💻 cs.LO cs.FLcs.PL
keywords formallyparserparsingcorrectgrammargrammarsinterpreterpegs
0
0 comments X
read the original abstract

Parsing is an important problem in computer science and yet surprisingly little attention has been devoted to its formal verification. In this paper, we present TRX: a parser interpreter formally developed in the proof assistant Coq, capable of producing formally correct parsers. We are using parsing expression grammars (PEGs), a formalism essentially representing recursive descent parsing, which we consider an attractive alternative to context-free grammars (CFGs). From this formalization we can extract a parser for an arbitrary PEG grammar with the warranty of total correctness, i.e., the resulting parser is terminating and correct with respect to its grammar and the semantics of PEGs; both properties formally proven in Coq.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.