Program extraction applied to monadic parsing
2019 ◽
Vol 29
(4)
◽
pp. 487-518
◽
Keyword(s):
Abstract This article outlines a proof-theoretic approach to developing correct and terminating monadic parsers. Using modified realizability, we extract formally verified and terminating programs from formal proofs. By extracting both primitive parsers and parser combinators, it is ensured that all complex parsers built from these are also correct, complete and terminating for any input. We demonstrate the viability of our approach by means of two case studies: we extract (i) a small arithmetic calculator and (ii) a non-deterministic natural language parser. The work is being carried out in the interactive proof system Minlog.
2001 ◽
Vol 12
(04)
◽
pp. 517-531
2016 ◽
Vol 113
(31)
◽
pp. 8618-8623
◽
Keyword(s):