def p_rel(p): ''' rel : LOWERTHAN | MORETHAN | LOWEREQ | MOREEQ | SAME | DIFFERENT ''' #print(p[1]) cuadruplos.pushPoper(p[1])
def p_pushop(p): "pushop :" cuadruplos.pushPoper(p[-1])
def p_log(p): ''' log : OR | AND ''' cuadruplos.pushPoper(p[1])
def p_escrit2(p): ''' escrit2 : ''' cuadruplos.printcuad() cuadruplos.pushPoper("print")
def p_pushPoper(p): ''' pushPoper : ''' cuad.pushPoper(p[-1])
def p_addFF(p): ''' addFF : ''' cuad.pushPoper(p[-1])
def p_insertOpWrite(p): ''' insertOpWrite : ''' cuad.pushPoper('write')
def p_insertOpRead(p): ''' insertOpRead : ''' cuad.pushPoper("read")