The Design of a Verified Derivative-Based Parsing Tool for Regular Expressions

Authors

  • Elton Cardoso
  • Maycon Amaro
  • Samuel Feitosa
  • Leonardo Reis
  • André Du Bois
  • Rodrigo Ribeiro Universidade Federal de Ouro Preto

DOI:

https://doi.org/10.19153/cleiej.24.3.2

Abstract

We describe the formalization of Brzozowski and Antimirov derivative based algorithms for regular expression parsing, in the dependently typed language Agda. The formalization produces a proof that either an input string matches a given regular expression or that no matching exists. A tool for regular expression based search in the style of the well known GNU grep has been developed with the certified algorithms. Practical experiments conducted with this tool are reported.

Downloads

Published

2021-12-20