Error validation for adding expressions within languages