Book version of parsing.c