Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
423943 | Electronic Notes in Theoretical Computer Science | 2006 | 29 Pages |
Abstract
To illustrate the utility of a powerful modules language, this paper presents the embedded interpreter Lua-ML. The interpreter combines extensibility and separate compilation without compromising type safety. Its types are extended by applying a sum constructor to built-in types and to extensions, then tying a recursive knot using a two-level type; the sum constructor is written using an ML functor. The initial basis is extended by composing initialization functions from individual extensions, also using ML functors.
Related Topics
Physical Sciences and Engineering
Computer Science
Computational Theory and Mathematics