Companion code for the Flex and Bison book