daili@wasp.eng.ufl.edu (DaiLi) (02/12/91)
First of all, i'd like to say THANKS to those people who kindly sent me help on the translation of Pascal -> C. Among the many versions of translations (Sequential stack implementation), there are basically two types. one is word-by-work translation, and the other type is translated by p2c. However, look them in detail, there are one major difference is the initial value of stack.top when create stack. thru p2c, the initial Stack.Top is 0; and many translations are choosing -1. i assume that there is no difference on the results, but can anyone point out the advantage and disadvantage of choosing 0 and -1 as initial value of stack? i could not get p2c from csvax.cs.caltech.edu, anonymous ftp was rejected. can anyone point me another ftp site to get p2c? thanks......