A long time ago, I wrote a utility for an employer that allowed testers to perform verification on data coming out of a hardware box using a regular expression language. It allowed users to evaluate expressions against live or archived data like: "packetA packetB* packetC". Of course, the users of this library had to provide a parser for breaking the data into individual units. For more sophisticated checks, it had the ability to attach filters to the tokens: "packetA packetB<startFlag> packetB+ packetB<endFlag> packetC". The <startBit> and <endBit> tags would be matched to user specified callbacks that could do deeper inspection on the data outside of simple id. In this contrived example, verifying that a start flag is set and an end flag is set.
It seemed like a fairly powerful utility at the time, and was an interesting little project to develop. I was considering developing another version of it, but I'm having a hard time determining if this type of analysis is really broadly useful. Can anyone think of any problems such a utility would help solve?
It seemed like a fairly powerful utility at the time, and was an interesting little project to develop. I was considering developing another version of it, but I'm having a hard time determining if this type of analysis is really broadly useful. Can anyone think of any problems such a utility would help solve?