Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fluffysquirrels/js-repl
A REPL for JavaScript and (very limited) Lisp programming, implemented in JavaScript and HTML.
https://github.com/fluffysquirrels/js-repl
Last synced: 8 days ago
JSON representation
A REPL for JavaScript and (very limited) Lisp programming, implemented in JavaScript and HTML.
- Host: GitHub
- URL: https://github.com/fluffysquirrels/js-repl
- Owner: fluffysquirrels
- Created: 2012-06-02T20:27:20.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-06-02T21:12:41.000Z (over 12 years ago)
- Last Synced: 2024-10-28T13:04:05.215Z (about 2 months ago)
- Language: JavaScript
- Size: 215 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
js-repl
=======A REPL for JavaScript and (very limited) Lisp programming, implemented in JavaScript and HTML.
I started programming on my Android phone while on the train to and from work, using the fantastic Terminal IDE (https://play.google.com/store/apps/details?id=com.spartacusrex.spartacuside). Over the course of a few months, I wrote this in Vim.
It began as a single HTML page with a text box as a REPL to run JavaScript, so I could write code on the train. I then got inspired to muck around with Lisp again, so I decided to write my own. The result is a limited Lisp, with an interpreter written in JavaScript. There are a few hundred unit tests verifying most of the Lisp interpreter and library functions.
Lisp's flexibility has intrigued me for quite some time. I remember reading that the first OO experiments in Lisp were written as libraries. I wanted to see how this could be done, and what potential uses this flexibility would have in more mundane code, like business applications.
At the moment, I'm working on an implementation of an embedded Lisp type system, written just in Lisp. So far there are immutable records that obey pre-defined types. Each record contains only fields that are defined in its type, but not all fields need to be present with values. Each field has a type, which is either another record or a primitive type implemented in the JavaScript library.