Abstract
Dynamically typed environment-passing interpreters (EPIs), such as Scheme, are known for their small footprint. In this era of ubiquitous computing, there is an advantage for providing in situ programming support for systems having limited resources. Thus, EPIs may play an important role in programming embedded systems, especially with system-on-a-chip approaches. It is desirable that embedded interpreters be full featured, such as including an object system. By taking a view that equates function definitions with classes and environments with objects, it is shown how any EPI having functions and environments as first-class objects can be made object-oriented with a strong inheritance model through the addition of proxies and judicious use of dynamic scope and/or assignment. Moreover, the sum total of the necessary changes is surprisingly small. The result is an object-oriented interpreter with little additional cost in terms of interpreter size or specialized syntax.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.