| 摘要: |
| 讨论了一个对象式Lambda演算的部分计值器.对象式Lambda演算在Lambda演算的基础上添加了对象机制.部分计值器的构造是采用传统的三步法,首先定义对象式Lambda演算的元解释器;然后提出对象式Lambda演算的约束时间分析方法(binding-timeanalysis),约束时间分析决定哪些计算可以在编译时完成,哪些计算需留在运行时执行;最后定义部分计值器,同时,给出了元解释器和部分计值器的正确性证明. |
| 关键词: 部分计值 对象式Lambda演算 约束时间分析 |
| DOI: |
| 分类号: |
| 基金项目:国家863高科技发展规划资助项目(863-306-05-04-3) |
|
| Self-Applicable Partial Evaluation for the Lambda Calculus of Objects |
|
WANG Ming wen,SUN Yong qiang
|
| Abstract: |
| A self-applicable partial evaluator for the Lambda calculus of objects is presented in this paper which is an untyped Lambda calculus extended with object primitives. The classic three steps methodology is used to construct the partial evaluator. First, a meta interpreter is defined for the language. Second, an abstract analysis (binding-time analysis) is introduced to determine which operations can be executed at compile time and which operations will be executed at run-time. Finally, the self-applicable partial evaluator is exhibited. Proofs of the correctness of the meta-interpreter and self-applicable partial evaluator are also given in this paper. |
| Key words: partial evaluation Lambda calculus of objects binding time analysis |