[Kate/David] Compile provided code and return success or failure