gpt4 book ai didi

programming-languages - 元循环评估器的条件

转载 作者:行者123 更新时间:2023-12-04 07:08:36 25 4
gpt4 key购买 nike

是否有语言必须满足的任何条件才能为该语言编写元循环评估器?我可以为 BASIC 或 Python 编写一个吗?

最佳答案

报价 Reg Braithwaite :

The difference between self-interpreters and meta-circular interpreters is that the latter restate language features in terms of the features themselves, instead of actually implementing them. (Circular definitions, in other words; hence the name). They depend on their host environment to give the features meaning.



鉴于此,允许为它们编写元循环解释器的语言的主要特征之一是 homoiconicity ,也就是说,程序的主要表示是语言本身的原始数据结构。 Lisp 展示了这一点,因为程序本身被表示为列表。

关于programming-languages - 元循环评估器的条件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/717010/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com