I was going to post this, but you beat me to it.
It's a VM of a sort, and the p-code the VM executes is tokenized input.