Implement syntax checking of instructions.