https://github.com/carlbordum/lithp
an encouraged lisp dialect
https://github.com/carlbordum/lithp
Last synced: 21 days ago
JSON representation
an encouraged lisp dialect
- Host: GitHub
- URL: https://github.com/carlbordum/lithp
- Owner: carlbordum
- License: mit
- Created: 2017-10-18T16:59:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-19T17:47:45.000Z (about 7 years ago)
- Last Synced: 2025-02-17T15:49:29.694Z (4 months ago)
- Language: C
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lithp
an incomplete, fairly useless lisp dialectfor now its like most other dialects except slow, few features and quoted
expressions are written like `{}` instead of `'()`.Quoted lists are referred to as q-expresisons and normal lists are
s-expressions ofc.See `stdlib.th` and the files in `examples/` for syntax.
## Getting started
You need editline, on Debian based distros that is:$ sudo apt-get install libedit-dev
Also for _some_ syntax highlighting in lithp files, I have the following line
in my vim config:autocmd BufNewFile,BufRead *.th set syntax=clojure
To run lithp:
$ make
$ ./lithp## Todo
* wrap c syscalls
* a cool program in lithp
* namespaces
* docstrings for non-builtins too
* write stdlib -- networking would be cool
* automatically import some core of stdlib
* arbitrary sized integers
* float data type
* macros
* tests?
* tail call optimization
* garbage collection
* implement lenv with a mapping/dictionary
* some kind of ranges/list comprehensions ([] still unused)