tags:

views:

325

answers:

3

Hi

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.

Any pointers would be appreciated (pun not intended!)

+10  A: 

It's in 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?
seth
+11  A: 

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

M-x find-function doctor
Trey Jackson
+6  A: 

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.

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

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

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

Chris Arguin