Xtext Generator Architecture
Although many components shipped with Xtext are generic (i.e. they interpret the grammar, meta model, etc.), there are also some components which are generated. Currently the parser as well as the Ecore model are generated, for instance. The generator (org.eclipse.xtext.generator.Generator) shipped with Xtext can be configured with any number of so called generator fragments (IGeneratorFragment).