We have developed an algorithm to compute the Hilbert-space basis and the operator algebra of descendant field for (1+1)-dimensional conformal field theories. Implemented as a Mathematica computer program, this algorithm is used to obtain nonperturbatively the spectrum of the transfer matrix theories, seen as deformations of a massless conformal theory.