Validate expression with diferent precedances