| Single-Scan Techniques for the Translation of Arithmetic Expressions into ALGOL 60 |
| Full text |
Pdf
(510 KB)
|
| Source
|
Journal of the ACM (JACM)
archive
Volume 11 , Issue 2 (April 1964)
table of contents
Pages: 159 - 167
Year of Publication: 1964
ISSN:0004-5411
|
|
Authors
|
|
B. Randell
|
The English Electric Company Limited, Automatic Programming Section, Atomic Power Division, Whetstone, England
|
|
L. J. Russell
|
The English Electric Company Limited, Automatic Programming Section, Atomic Power Division, Whetstone, England
|
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 2, Downloads (12 Months): 15, Citation Count: 2
|
|
|
ABSTRACT
The first section of the paper contains a brief description of the well-known technique of using a stack, or pushdown store, to re-order the operators of an arithmetic expression, as defined in ALGOL 60, in order to transform the expression into Reverse Polish parenthesis-free form. It is shown that improvements to this Reverse Polish form can be made quite simply, by extending the use of the stack to include information about the operands of the expression. Firstly, information gained from the declarations of the operands can be used to control the generation of real-integer conversion instructions. Secondly, operators whose operands are numerical constants can be computed during translation, using the partially generated Reverse Polish object program as a second stack.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
HAMBLIN C. L. Translation to and from Polish notation. Comput. J. 5 (Oct. 1962).
|
| |
2
|
DIJKSTRA, E.W. Recursive programming. Num. Math. 2 (Oct. 1961).
|
 |
3
|
|
| |
4
|
DIJKSTRA, E.W. Making a translator for Algol 60. APIC Bull. 7 (May, 1961).
|
| |
5
|
TAKAHASI, S., NISHINO, H., YosIIHIro, K., AND Fucm, K. System design of the ETL Mk. 6 computer. Proc. IFIP Congress--62, Munich. (North Holland Publ. Co., Amsterdam, Aug. 1962).
|
|