ACM Home Page
Please provide us with feedback. Feedback
An algorithm defining ALGOL assignment statements
Full text PdfPdf (224 KB)
Source
Communications of the ACM archive
Volume 3 ,  Issue 3  (March 1960) table of contents
Pages: 170 - 171  
Year of Publication: 1960
ISSN:0001-0782
Author
Robert W. Floyd  Illinois Institute of Technology, Chicago
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 4,   Downloads (12 Months): 18,   Citation Count: 0
Additional Information:

abstract   references   collaborative colleagues   peer to peer  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/367149.367170
What is a DOI?

ABSTRACT

It is not possible, by testing symbol pairs only [2], to determine whether a given symbol string is consistent with the formation rules of ALGOL [1]. For example, the formula l1: l2: x[i := 5j + 3.14.159; violates four distinct formation rules of ALGOL, yet each pair of adjacent characters may appear in permissible formulae. The algorithm described here will determine, with minor restrictions, whether a particular symbol string is a permissible ALGOL assignment statement. I believe that the same technique may be extended to determine whether a given symbol string is a permissible ALGOL program or not, where a program is defined as a sequence of permissible statements separated by semicolons. The algorithm scans the formula from left to right, replacing certain character pairs by single characters. If under the allowable transformations the symbol string may be reduced to the single character &Sgr;, it is a well-formed formula in ALGOL; otherwise it violates the formation rules.


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
 
2
Communications of Ihe ACM 2 (April 1959), 10-11.
3

Peer to Peer - Readers of this Article have also read: