Letters to the editor: correction's to Stone's compiler procedures
暂无分享,去创建一个
Although the above errors are most likely typographical in origin, there is an omission which makes the program recurse to infinite depth upon encountering '( ' in the input string. When procedure "p r imary" is evoked and encounters '( ' it then evokes procedure "expression" without updating the position of the pointer in the input string. Hencewhen "pr imary" is again evoked, and encounters ' ( ' , the process is repeated. To correct this, I inserted a call to procedure " scan" between lines 61 and 62, which also eliminates the need to position the input pointer at the first character prior to calling procedure "express ion" initially. The algorithm was then coded in Raytheon 520 (recursive) Real-Time FORTRAN, and produced the correct answers to the examples given. JEFFREY L. DEVEBER
[1] N. S. Barnett,et al. Private communication , 1969 .
[2] David F. Stevens,et al. System evaluation on the Control Data 6600 , 1968, IFIP Congress.
[3] John P. Penny,et al. An Analysis, both Theoretical and by Simulation, of a Time-Shared Computer System , 1966, Comput. J..
[4] D. J. Howarth,et al. The Atlas scheduling system , 1962, Comput. J..
[5] E. F. Codd,et al. Multiprogram scheduling , 1960, Commun. ACM.