Exemple #1
0
def p_expComp_ternario_1(t):
    """
    expComp :  datatype R_BETWEEN datatype R_AND datatype
    """
    t[0] = expression.TernaryRelationalOperation(t[1], t[3], t[5], t[2],
                                                 t[1].row, t[1].column)
    repGrammar.append(t.slice)
Exemple #2
0
def p_expComp_ternario_2(t):
    """
    expComp : datatype R_NOT R_BETWEEN datatype R_AND datatype
    | datatype R_BETWEEN R_SYMMETRIC datatype R_AND datatype
    """
    t[0] = expression.TernaryRelationalOperation(t[1], t[4], t[6], t[2] + t[3],
                                                 t[1].row, t[1].column)

    repGrammar.append(t.slice)