def p_expresion_decimal(t): 'valor : DECIMAL' t[0] = ABCInstruccion.Valor(t[1], 1) t[0] = ABCInstruccion.ExpresionSimple(t[0]) global Ts t[0].n_t(find_column(Ts.texto_analisis, t.slice[1])) Ts.rp_nuevo_nodo('valor : DECIMAL', "t[0] = ABCInstruccion.Valor(t[1], 1)")
def p_expresion_cadena(t): 'valor : CADENA' t[0] = ABCInstruccion.Valor(t[1], 2) t[0] = ABCInstruccion.ExpresionSimple(t[0]) global Ts t[0].n_t(find_column(Ts.texto_analisis, t.slice[1])) Ts.rp_nuevo_nodo('valor : CADENA', "t[0] = ABCInstruccion.Valor(t[1], 2)")
def p_expresion_entero(t): 'valor : ENTERO' t[0] = ABCInstruccion.Valor(t[1], 0) t[0] = ABCInstruccion.ExpresionSimple(t[0]) global Ts t[0].n_t(find_column(Ts.texto_analisis, t.slice[1])) Ts.rp_nuevo_nodo('valor : ENTERO', "t[0] = ABCInstruccion.Valor(t[1], 0)")