1. A method of generating code, comprising: receiving a specification of one or more translation patterns; and using the one or more translation patterns to generate at least a portion of code associated with a translator; wherein using the one or more translation patterns to generate at least a portion of code associated with the translator results in the translator being configured to create a target object model, including by populating one or more elements of the target object model in a processing order at least in part associated with an order of elements in the one or more translation patterns.