https://github.com/vic/lispy
Lispy is sexpy Ruby
https://github.com/vic/lispy
Last synced: 8 months ago
JSON representation
Lispy is sexpy Ruby
- Host: GitHub
- URL: https://github.com/vic/lispy
- Owner: vic
- License: other
- Created: 2008-04-09T23:09:52.000Z (about 18 years ago)
- Default Branch: master
- Last Pushed: 2008-04-11T22:30:45.000Z (about 18 years ago)
- Last Synced: 2025-01-31T10:04:44.370Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 82 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
Lispy is sexpy Ruby.
Lispy is a lisp dialect resembling Ruby sexp. Actually it's almost ruby's sexp disguised as lisp.
The idea is this:
Given a ruby program, feed it to a parser producing lispy (redleaf).
Because lispy is just ruby-sexp it should be really fast to create a lispy
expression from a sexp.
Optionally allow another lispy or ruby program to modify the lispy expression.
In this step it might be possible to modify the original ruby program by
working on its lispy representation. Just like lisp-macros do.
Finally convert the lispy expression to either:
- ruby's sexp that can be later compiled to bytecode (rubinius)
- ruby code that can be interpreted directly.