vm/virtual_machine library

Classes

ValueListener
Specifies what to do when a value is received The next ValueListener in the listener stack is passed, so that the listeners may be chained if desired
VirtualMachine
The virtual machine is actually just a set of listeners that are combined and called when a command is received Because I'm a terrible programmer we have a cyclc dependency here - could be broken with a VM interface but I'm lazy today

Typedefs

ValueCallback = dynamic Function(dynamic)
callback to execute with a value