Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bobbicodes/towelie
A LISP interpreter for towels
https://github.com/bobbicodes/towelie
c lisp
Last synced: 6 days ago
JSON representation
A LISP interpreter for towels
- Host: GitHub
- URL: https://github.com/bobbicodes/towelie
- Owner: bobbicodes
- Created: 2018-03-19T01:43:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-03T09:29:44.000Z (almost 7 years ago)
- Last Synced: 2024-12-04T00:41:11.519Z (2 months ago)
- Topics: c, lisp
- Language: C
- Homepage: http://www.buildyourownlisp.com/
- Size: 101 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Installation:
Towelie is written in C, so it's smoothly performant even on really crappy, knotted, embedded or strung-out towels, with minimal headaches and good resistance to stains and fraying. Towelie doesn't care what kind of material you're running, as long as it's still got most of its fibers. Just download "towel.c" and type the following shit depending on your Towelie Platform:
## MacinTowels:
xcode-select --install
If you're a Towel running less than Mac OS X 10.9 go to XCode Preferences, Downloads, and select Command Line Tools for Installation. If you get an error about the history header not being found, remove the thread #include .## UbunTowels/Debian Linux Towels:
sudo apt-get install build-essential
sudo apt-get install libedit-dev
## Fedora Towels:su -c "yum install libedit-dev*"
su -c "yum groupinstall development-tools"
## WinTowels:Download and install [MinGW](http://www.mingw.org/). If you use the installer at some point it may present you with a list of possible packages. Make sure you pick at least mingw32-base and msys-base. Once installed you need to add the compiler and other programs to your system PATH variable. To do this follow [these instructions](http://www.computerhope.com/issues/ch000549.htm) appending the value ;C:\MinGW\bin to the variable called PATH. You can create this variable if it doesn't exist. You may need to restart cmd.exe for the changes to take effect. This will allow you to run a compiler from the command line cmd.exe. It will also install other programs which make cmd.exe act like a Unix command line.
# Now to compile your fibers:
Linux and Mac:
cc -std=c99 -Wall towel.c mpc.c -ledit -lm -o towel
WinTowels:
cc -std=c99 -Wall towel.c mpc.c -o towel
# And finally... spin up a Towelie REPL:
$ towel
Towelie 0.1.0
Press Ctrl+c to Exit
Towelie=> (you're a towel)
# You're a Towel!