Papers of the Symposium on Interpreters and Interpretive Techniques - SIGPLAN '87 1987
DOI: 10.1145/29650.29665
|View full text |Cite
|
Sign up to set email alerts
|

A recursive interpreter for the Icon programming language

Abstract: Abstrac tThe implementation of the Icon programming language is more interestin g and difficult than the implementation o f many other programming languages because an expression i n Icon can generate a sequence of results . The implementatio n therefore must support contr ol backtracking in expressio n evaluation . There also are several novel control structure s related to g enerators . Because expression evaluation is limite d lexically . a full coroutine mechanism is not needed an d expression evaluation c… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1

Citation Types

0
2
0

Year Published

1989
1989
2016
2016

Publication Types

Select...
3
1
1

Relationship

0
5

Authors

Journals

citations
Cited by 11 publications
(2 citation statements)
references
References 3 publications
0
2
0
Order By: Relevance
“…The idea of implementing nondeterminism by invoking a continuation on success and falling through on failure is not new. It has been proposed several times in the literature, in several contexts -for example Prolog meta-interpreters and implementing nondeterminism in languages such as Lisp [5] -and it is closely related to the idea of binarization of Prolog programs [15] and to the implementation of generators in languages such as Icon [13]. However, few of these papers have formal translation rules, and few consider the optimization opportunities presented by knowledge of determinism information, which can derived by program analysis even for languages such as Prolog in which determinism is not a fundamental concept.…”
Section: Related Workmentioning
confidence: 99%
“…The idea of implementing nondeterminism by invoking a continuation on success and falling through on failure is not new. It has been proposed several times in the literature, in several contexts -for example Prolog meta-interpreters and implementing nondeterminism in languages such as Lisp [5] -and it is closely related to the idea of binarization of Prolog programs [15] and to the implementation of generators in languages such as Icon [13]. However, few of these papers have formal translation rules, and few consider the optimization opportunities presented by knowledge of determinism information, which can derived by program analysis even for languages such as Prolog in which determinism is not a fundamental concept.…”
Section: Related Workmentioning
confidence: 99%
“…O'Bagy and Griswold developed a technique for translating Icon that utilizes recursive interpreters [14]. The basic idea behind recursive interpreters for goal-directed evaluation is that each generator that produces a value does so by recursively invoking the interpreter.…”
Section: Compilation Techniquesmentioning
confidence: 99%