1. An automated system comprising a controller and a plant connected by at least one actor unit and at least one sensor unit, wherein the at least one sensor unit collects and outputs information about the plant to the controller and the controller calculates based on the received information a control signal and outputs the control signal to the at least one actor unit, the controller comprising a processing unit to calculate and output the control signal by the controller, wherein the automated system further comprises an interpreter for generating and executing an execution code on the processing unit, wherein the interpreter receives instructions in the form of a tree sequence comprising a subsequence, wherein the subsequence comprises at least one step, wherein the at least one step comprises at least one statement, wherein the at least one statement is a control flow statement used to initiate a new subsequence, the execution code generated and executed by the interpreter causes the processing unit to sequentially execute steps of each subsequence, such that each of the steps is executed by the processing unit until all statements comprised in the respective step have been completed, and statements initiated by the same step are executed in a parallel or in a quasi-parallel manner by the processing unit.