Problem 4: Generate the simulation

The simulation can be modelled as a transformation on the original text taking the result of Problem 2 as an input for the transformation.

Subproblems:

  1. Resolve the original text being modified.

  2. Find the location in the original text based on the location information.

  3. Apply the action and operands.

  4. Create a rendition of the result.