示例#1
0
def p_rel(p):
    '''
  	rel : LOWERTHAN
    	| MORETHAN
        | LOWEREQ
        | MOREEQ
        | SAME
        | DIFFERENT
  '''
    #print(p[1])
    cuadruplos.pushPoper(p[1])
示例#2
0
def p_pushop(p):
    "pushop :"
    cuadruplos.pushPoper(p[-1])
示例#3
0
def p_log(p):
    '''
  	log : OR
        | AND
  '''
    cuadruplos.pushPoper(p[1])
示例#4
0
def p_escrit2(p):
    '''
    escrit2 :
    '''
    cuadruplos.printcuad()
    cuadruplos.pushPoper("print")
示例#5
0
def p_pushPoper(p):
    '''
    pushPoper :
    '''
    cuad.pushPoper(p[-1])
示例#6
0
def p_addFF(p):
    '''
    addFF :
    '''
    cuad.pushPoper(p[-1])
示例#7
0
def p_insertOpWrite(p):
    '''
    insertOpWrite  :
    '''
    cuad.pushPoper('write')
示例#8
0
def p_insertOpRead(p):
    '''
    insertOpRead : 
    '''

    cuad.pushPoper("read")