Back to Search
Start Over
Proof-directed program transformation: A functional account of efficient regular expression matching
- 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.
- Subjects :
- Theoretical computer science
Finite-state machine
Computer science
Semantics (computer science)
Backtracking
Program transformation
020207 software engineering
0102 computer and information sciences
02 engineering and technology
01 natural sciences
Continuation
010201 computation theory & mathematics
Formal language
0202 electrical engineering, electronic engineering, information engineering
Automata theory
Regular expression
Software
Subjects
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