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 can be handled in a stack-like fashion .The implementation of Icon consists of a virtual machin e with it stack-based architecture and an interpreter that execute s the virtual machine instructions . There have been several different interpreters for Icon's virtual machine . This pape r describes a new approach in which the interpreter is calle d recursively whenever the context for expression evaluatio n changes . This recursive interpreter has the advantage of bein g conceptually clear and flexible without sacrificing efficiency .
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.
customersupport@researchsolutions.com
10624 S. Eastern Ave., Ste. A-614
Henderson, NV 89052, USA
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Copyright © 2024 scite LLC. All rights reserved.
Made with 💙 for researchers
Part of the Research Solutions Family.