Authors
Scott Owens, John Reppy, Aaron Turon
Publication date
2009/3
Journal
Journal of Functional Programming
Volume
19
Issue
2
Pages
173-190
Publisher
Cambridge University Press
Description
Regular-expression derivatives are an old, but elegant, technique for compiling regular expressions to deterministic finite-state machines. It easily supports extending the regular-expression operators with boolean operations, such as intersection and complement. Unfortunately, this technique has been lost in the sands of time and few computer scientists are aware of it. In this paper, we reexamine regular-expression derivatives and report on our experiences in the context of two different functional-language implementations. The basic implementation is simple and we show how to extend it to handle large character sets (e.g., Unicode). We also show that the derivatives approach leads to smaller state machines than the traditional algorithm given by McNaughton and Yamada.
Total citations
20092010201120122013201420152016201720182019202020212022202320244651216119209128616898
Scholar articles
S Owens, J Reppy, A Turon - Journal of Functional Programming, 2009