Emacs心理治疗师:我在哪里可以找到代码?

时间:2021-10-12 15:08:07

I'd like to port the Emacs Psychotherapist to C :) but I would like to know where I can find the source code. What I am afraid of is that it is written in Lisp. If it is I think I will be out of luck porting it to C unless someone has already done it.

我想将Emacs心理治疗师移植到C :)但我想知道在哪里可以找到源代码。我害怕的是它是用Lisp编写的。如果是这样的话,我想如果有人已经把它移植到C,我将会运气不好。

Any pointers would be appreciated (pun not intended!)

任何指针将不胜感激(双关语无意!)

3 个解决方案

#1


What is in Emacs is a variant of Eliza, so you might want to start looking there. That link lists many places to get different versions of the source.

Emacs中有什么是Eliza的变种,所以你可能想要开始寻找它。该链接列出了许多地方以获得不同版本的源。

Porting from Lisp to C is definitely doable, but there is a sufficiently different approach in those languages to make it difficult.

从Lisp移植到C绝对是可行的,但是在这些语言中有一种完全不同的方法使其变得困难。

Here is one version of the good doctor, written in C++. Or there is a general description of how it works.

这是一个用C ++编写的好医生的一个版本。或者对它的工作原理有一般描述。

Eliza is the only doctor with more lives than Doctor Who!

伊丽莎是唯一一位比神秘医生更有生命的医生!

#2


For this kind of thing, it's handy to know about

对于这种事情,它很方便了解

M-x find-function doctor

#3


It's in emacs-lisp.

它在emacs-lisp中。

Just because it's been some time since I fired up the doctor:

仅仅因为我开了医生已经有一段时间了:

I am the psychotherapist.  Please, describe your problems.  Each time you are
finished talking, type RET twice.

Where is your source code?

Why do you say 
where is my source code?

#1


What is in Emacs is a variant of Eliza, so you might want to start looking there. That link lists many places to get different versions of the source.

Emacs中有什么是Eliza的变种,所以你可能想要开始寻找它。该链接列出了许多地方以获得不同版本的源。

Porting from Lisp to C is definitely doable, but there is a sufficiently different approach in those languages to make it difficult.

从Lisp移植到C绝对是可行的,但是在这些语言中有一种完全不同的方法使其变得困难。

Here is one version of the good doctor, written in C++. Or there is a general description of how it works.

这是一个用C ++编写的好医生的一个版本。或者对它的工作原理有一般描述。

Eliza is the only doctor with more lives than Doctor Who!

伊丽莎是唯一一位比神秘医生更有生命的医生!

#2


For this kind of thing, it's handy to know about

对于这种事情,它很方便了解

M-x find-function doctor

#3


It's in emacs-lisp.

它在emacs-lisp中。

Just because it's been some time since I fired up the doctor:

仅仅因为我开了医生已经有一段时间了:

I am the psychotherapist.  Please, describe your problems.  Each time you are
finished talking, type RET twice.

Where is your source code?

Why do you say 
where is my source code?