Parsing using Flex and Bison in C++ and roll-your-own in D