Building a Structural Regular Expressions Engine: An Alternative Approach to Pattern Matching
By
vinhnx
Fresh out the oven, still warm. Top of the tray.
Summary
This article explores the implementation of a structural regular expressions engine, presenting an alternative approach to traditional regex that focuses on structural transformations rather than pattern matching. The author introduces the concept of structural regular expressions, explains their differences from conventional regex, and walks through building an engine for this paradigm. The content is technical and educational, aimed at programmers interested in regex internals and alternative computational approaches.
Key quotes
· 4 pulledIf you have you ever looked at regular expressions and thought 'gee, these sure are useful but I wish there was more going on', then do I have a blog post for you!
Allow me to introduce you to the delightful world of structural regular expressions.
I love the smell of regular expressions in the morning
Implementing a structural regular expressions engine for x/fun and.*/ v/profit/
You might also wanna read
DeiMOS: A Superoptimizer for the MOS 6502 Processor
The article introduces DeiMOS, a superoptimizer tool specifically designed for the MOS 6502 processor. A superoptimizer is a specialized too
Understanding the Complexity of Time Zones and the Value of the Time Zone Database
The article discusses the complexity of time zones and the importance of relying on existing solutions like the Time Zone Database rather th
Hidden Performance Costs in Programming Languages: Comparing C and Higher-Level Languages
The article examines the perception that systems programmers avoid higher-level languages due to hidden performance costs, while arguing tha
Inside Functional Programming Languages: Implementation Details and Compilation Phases
The article explores the internal workings and implementation details of functional programming languages, particularly Haskell-like languag
Chuck Moore's ColorForth: A Programming Language and Operating System Using Color as Syntax
ColorForth is a modern redesign of the classic Forth programming language that uses color as punctuation for syntax. Created by Chuck Moore,
D Programming Language: Combining Multiple Paradigms for Fast, Scalable Code
The article presents D as a programming language that combines multiple programming paradigms harmoniously, offering classic polymorphism, v
