Skip to content

LeXofLeviafan/wisp

This branch is 2 commits ahead of wisp-lang/wisp:master.

Folders and files

NameName
Last commit message
Last commit date
May 21, 2013
Feb 7, 2021
Feb 7, 2021
Feb 7, 2021
Oct 10, 2012
Mar 25, 2019
Dec 27, 2019
Aug 24, 2018
Dec 27, 2013
Sep 28, 2012
Dec 9, 2019
Feb 7, 2021
Nov 20, 2019
Dec 27, 2019

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%