This document contains source code for various components of a Java program that implements grammatical optimization. It includes the main class with the main method that initializes variables and objects. It also includes classes for the genotype, grammar, initializer, and mapper components. The classes define methods for initializing objects, mapping between genotypes and phenotypes, checking validity, and accessing attributes.