A simple regular expression parser written in C