https://github.com/hellerve/klutz
zepto modules to Clojure namespaces
https://github.com/hellerve/klutz
Last synced: 2 months ago
JSON representation
zepto modules to Clojure namespaces
- Host: GitHub
- URL: https://github.com/hellerve/klutz
- Owner: hellerve
- Created: 2016-11-20T15:59:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-21T14:17:55.000Z (over 9 years ago)
- Last Synced: 2025-04-05T22:43:44.572Z (12 months ago)
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# klutz
**Disclaimer: Proof-of-concept software! Probably does not work most of the time.
It also depends on the bugfixes of the zepto standard module `compiler/ast` that
will be in the upcoming version of zepto (`v0.9.7`, if you are reading from the future).**
klutz compiles zepto modules to Clojure namespaces.
Named `klutz` because `clotz` is not a pun.
## Usage
Don't. If you insist, you can call `zepto klutz.zp `. This will
print the rendered Clojure namespace to the standard output, which you can
then redirect to a file and load with Clojure.
## To Do
- [ ] Complex numbers (using them throws an error for now)
- [ ] Byte vectors (currently compiled to `(into-array Byte/TYPE (map byte []))`, but
that is suboptimal - I think - and won't work if quoted)
- [ ] Small integers (currently compiled to `(long )`, has the same problems as above; this
is probably a theoretical problem, however, as regular zepto has no literals for these numbers)
- [ ] Standard library/Core function translation (as in, transforming the names of the functions
in zepto's standard library to functions from `clojure.core` - there is already a minimal
structure in `translations.zp`)
- [ ] imports (is there even a good way to do that?)
Have fun!