Initial code for compiling reference definitions.