translator: changed process operator to throw errors

integrated process first operand function into process operator function
changed process final operator to throw errors
changed process done stack top to throw errors