TRX: A formally verified parser interpreter

22Citations
Citations of this article
16Readers
Mendeley users who have this article in their library.

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. © A. Koprowski and H. Binsztok.

Cite

CITATION STYLE

APA

Koprowski, A., & Binsztok, H. (2011). TRX: A formally verified parser interpreter. Logical Methods in Computer Science, 7(2). https://doi.org/10.2168/LMCS-7(2:18)2011

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free