[go: up one dir, main page]

Skip to content

LeXofLeviafan/wisp

 
 

Repository files navigation

A little Clojure-like LISP in JavaScript.

  1. Read about the language essentials & documentation.

  2. Drop wisp.min.js into your HTML code:

<script src="wisp.min.js"></script>

<script type="application/wisp">
  (alert "Hello world!")
</script>

<!-- Load from a file: -->
<script type="application/wisp" src="my-script.wisp"></script>

<!-- Using from JS: -->
<script>
  var wisp = require('wisp/compiler');
  var {code, error} = wisp.compile(`	; this transpiles wisp into JS
    (alert "Hello world!")
  `);
  (code ? console.log(code) : console.error(error));
  wisp.evaluate(`			; this evaluates the script
    (alert "Hello world!")
  `);
</script>
  1. Or install the binary with npm:

    npm install wisp

  2. Compile wisp code to native JS just like CoffeeScript:

    node_modules/.bin/wisp < my-script.wisp > my-script.js

  3. Fire up a REPL to explore the language:

    ./node_modules/.bin/wisp

More info.

Wisp is currently in maintenance mode. We're merging PRs but not actively writing new code.

About

A little Clojure-like LISP in JavaScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • wisp 99.4%
  • Other 0.6%