For the trivial time-unit-dsl expression langauge I've been testing with, regex hacking was a lot faster and easier (one evening) than the full fledged automaton techniques of the book (a couple of weekends) However, I did finally get it working, and it the resulting parser passes the - probably very insufficient - set of tests I threw at it. It operates off of data structures, and additional grammars can be fed in to parse additional languages. Over time, I expect to add at least one language for testing - SillyScript - and try out other parse construction methods.
Other methods I know of
- The simple parser doesn't support associativity
- 'Unit Tests' are sorely lacking
- Precedence assignment is implicit; overrides are possible but are fragile and require understanding the implicit assignment algorithm.