TDFA regular expression matching

John R Levine <>
Thu, 22 Feb 2024 14:28:40 -0500

          From comp.compilers

Related articles
TDFA regular expression matching (John R Levine) (2024-02-22)
| List of all articles for this month |

From: John R Levine <>
Newsgroups: comp.compilers
Date: Thu, 22 Feb 2024 14:28:40 -0500
Organization: Compilers Central
Injection-Info:; posting-host=""; logging-data="93830"; mail-complaints-to=""
Keywords: lex, performance
Posted-Date: 22 Feb 2024 14:29:18 EST

This 2022 paper describes tagged DFA matching of regular expressions that
have tags to track which input matched where in the regex. Tagging is
easy when matching with an NFA but harder with a DFA since the tag
locations in the NFA may end up combined or split in the DFA.

It seems pretty clever. And it does work, implemented in re2c.

John Levine,, Taughannock Networks, Trumansburg NY
Please consider the environment before reading this e-mail.

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.