built java model objects for
deserializing the grammar