Logo image
Strong functional pearl: Harper’s regular-expression matcher in Cedille
Journal article   Open access

Strong functional pearl: Harper’s regular-expression matcher in Cedille

Aaron Stump, Christopher Jenkins, Stephan Spahn and Colin McDonald
Proceedings of ACM on programming languages, Vol.4(ICFP), pp.1-25
08/02/2020
DOI: 10.1145/3409004
url
https://doi.org/10.1145/3409004View
Published (Version of record) Open Access

Abstract

This paper describes an implementation of Harper's continuation-based regular-expression matcher as a strong functional program in Cedille; i.e., Cedille statically confirms termination of the program on all inputs. The approach uses neither dependent types nor termination proofs. Instead, a particular interface dubbed a recursion universe is provided by Cedille, and the language ensures that all programs written against this interface terminate. Standard polymorphic typing is all that is needed to check the code against the interface. This answers a challenge posed by Bove, Krauss, and Sozeau.

Details

Metrics

Logo image