| A recursive interpreter for the Icon programming language |
| Full text |
Pdf
(924 KB)
|
| Source
|
Conference on Programming Language Design and Implementation
archive
Papers of the Symposium on Interpreters and interpretive techniques
table of contents
St. Paul, Minnesota, United States
Pages: 138 - 149
Year of Publication: 1987
ISBN:0-89791-235-7
Also published in ...
|
|
Authors
|
|
J. O'Bagy
|
Department of Computer Science, University of Arizona, Tucson, Arizona
|
|
R. E. Griswold
|
Department of Computer Science, University of Arizona, Tucson, Arizona
|
|
| Sponsor |
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 3, Downloads (12 Months): 18, Citation Count: 3
|
|
|
ABSTRACT
The implementation of the Icon programming language is more interesting and difficult than the implementation of many other programming languages because an expression in Icon can generate a sequence of results. The implementation therefore must support control backtracking in expression evaluation. There also are several novel control structures related to generators. Because expression evaluation is limited lexically, a full coroutine mechanism is not needed and expression evaluation can be handled in a stack-like fashion.The implementation of Icon consists of a virtual machine with a stack-based architecture and an interpreter that executes the virtual machine instructions. There have been several different interpreters for Icon's virtual machine. This paper describes a new approach in which the interpreter is called recursively whenever the context for expression evaluation changes. This recursive interpreter has the advantage of being conceptually clear and flexible without sacrificing efficiency.
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
|
|
| |
3
|
|
| |
4
|
|
| |
5
|
5. S. B. Wampler and R. E. Griswold, "The Implementation of Generators and Goal-Directed Evaluation in Icon", Software-Practice & Experience 13, 6 (June 1983), 495-518.
|
| |
6
|
6. R. E. Griswold and W. H. Mitchell, A Tour Through the C Implementation of Icon; Version 5.10, The Univ. of Arizona Tech. Rep. 85-19, 1985.
|
| |
7
|
|
| |
8
|
|
| |
9
|
|
| |
10
|
|
| |
11
|
|
 |
12
|
|
 |
13
|
|
| |
14
|
14. T. A. Budd, "An Implementation of Generators in C", J. Computer Lang. 7(1982), 69-87.
|
| |
15
|
15. E. Gallesio, The Programming Language ¿, Draft Report, University of Nice, 1985.
|
|