class CookbookDiff {

    public List diff(final String oldText, final String newText) {
        Node.panchor = null;
        oldInfo = new SourceInfo();
        newInfo = new SourceInfo();
        /* we don't process until we know both files really do exist. */

        inputScan(oldText, oldInfo);
        inputScan(newText, newInfo);

        /*
         * Now that we've read all the lines, allocate some arrays.
         */
        oldInfo.alloc();
        newInfo.alloc();

        blocklen = new int[(oldInfo.maxLine > newInfo.maxLine ? oldInfo.maxLine : newInfo.maxLine) + 2];

        /* Now do the work, and print the results. */
        transform();
        return printOut();
    }

}