Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ELIZA-scratch

Eliza-scratch is a port of the ELIZA chatbot to scratch. It is based on a very basic version of the chatbot written in C, modified to use llvm2scratch functions instead of normal functions, and cleaned up a little.

This project is not an attempt at making the most historically-accurate chatbot possible, or at making the best chat experience (in either case I would use DOCTOR), but proving the capability of llvm2scratch. Since llvm2scratch allows very, very simple IO, there aren't very many things that can run on it just yet, but I thought that ELIZA would be within its capabilities already, and a good proof of what it can already do.

Using

For your convenience, I have included an sb3 file to test this project, because actually compiling it requires a bit more upfront work. I personally don't have a scratch account (I'm more interested in llvm than in runing programs on scratch), so you won't find this project posted on scratch.mit.edu.

Compiling

The program requires newlib-scratch in order to compile properly. newlib-scratch is an in-progress implementation of libc for scratch. Building and using newlib-scratch is a little challenging, especially for the kind of people who are attracted scratch, hence the sb3 file. If you want to compile it yourself, then all you need to do is tell build.sh the path of eliza.c instead of demo.c; otherwise, the process isn't actually that difficul once newlib-scratch is working.

About

A rudimentary port of the ELIZA chatbot to scratch using llvm2scratch

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages