Implementation of planout interpreter in Golang

Perhaps `getOperator` is a better name for this.