Patent ID: 8621447

Claim:
A method, comprising: accessing source code from a non-transitory computer-readable medium, the source code comprising at least one declarative expression; identifying a declarative expression of a dynamic structure in source code by parsing the source code, the dynamic structure declared as having at least one of a name referencing a dynamic value or at least one key-value pair referencing a dynamic value; generating a mapping for use in generating output code, the output code configured to generate a structure at runtime based on the declaration of the dynamic structure, wherein the mapping comprises at least one intermediate expression corresponding to the dynamic value, and wherein the intermediate expression comprises: a declaration to initialize an intermediate component of the mapping, the intermediate component of the mapping comprising at least one of an array or a variable; and a declaration to initialize a structure having an intermediate array name in place of an array declared in the dynamic structure; and storing the mapping in the non-transitory computer-readable medium.