Transforming interpreters into inverse interpreters by partial evaluation
Transforming interpreters into inverse interpreters by partial evaluation
复制标题
通过部分评估将解释器转变为逆解释器
DOI:
10.1145/777388.777391
复制
发表时间:
2003
期刊:
影响因子:
--
通讯作者:
Takuya Hashimoto
中科院分区:
文献类型:
--
作者:
R. Glück;Youhei Kawada;Takuya Hashimoto
The experiments in this paper apply the idea of prototyping programming language tools from robust semantics: we used a partial evaluator (Similix) to turn interpreters into inverse interpreters. This way we generated inverse interpreters for several small languages including interpreters for Turing machines, an applied lambda calculus, a flowchart language, and a subset of Java bytecode. Limiting factors of online partial evaluation were the polyvariant specialization scheme with its lack of generalization;advantages were the availability of higher-order values to specialize a breadth-first tree traversal.This application of self-applicable partial evaluation is different from the classical Futamura projections that tell us how to translate a program by specialization of an interpreter.