def p_expComp_unario_1(t): """ expComp : datatype R_ISNULL | datatype R_NOTNULL """ t[0] = expression.UnaryRelationalOperation(t[1], t[2], t[1].row, t[1].column)
def p_expComp_unario_2(t): """ expComp : datatype R_IS R_NULL | datatype R_IS R_TRUE | datatype R_IS R_FALSE | datatype R_IS R_UNKNOWN """ t[0] = expression.UnaryRelationalOperation(t[1], t[2] + t[3], t[1].row, t[1].column) repGrammar.append(t.slice)
def p_expComp_unario_3(t): """ expComp : datatype R_IS R_NOT R_NULL | datatype R_IS R_NOT R_TRUE | datatype R_IS R_NOT R_FALSE | datatype R_IS R_NOT R_UNKNOWN """ t[0] = expression.UnaryRelationalOperation(t[1], t[2] + t[3] + t[4], t[1].row, t[1].column)