1. A method of simulating a control-dataflow graph comprising: building an internal representation of the control-dataflow graph comprising a current block; sending a token the current block; wherein said token executes the current block; and producing an output value of the current block.