Back to Search Start Over

Proof-directed program transformation: A functional account of efficient regular expression matching

Authors :
Andrzej Filinski
Source :
Journal of Functional Programming. 31
Publication Year :
2021
Publisher :
Cambridge University Press (CUP), 2021.

Abstract

We show how to systematically derive an efficient regular expression (regex) matcher using a variety of program transformation techniques, but very little specialized formal language and automata theory. Starting from the standard specification of the set-theoretic semantics of regular expressions, we proceed via a continuation-based backtracking matcher, to a classical, table-driven state machine. All steps of the development are supported by self-contained (and machine-verified) equational correctness proofs.

Details

ISSN :
14697653 and 09567968
Volume :
31
Database :
OpenAIRE
Journal :
Journal of Functional Programming
Accession number :
edsair.doi...........c55faac86471e9bb6a9e5d39d1212758
Full Text :
https://doi.org/10.1017/s0956796820000295