Simple LISP in JavaScript

Summary

LIPS is Simple Lisp in JavaScript. The name is recursive acronym which stands for LIPS is Pretty Simple

Key features:

Demo

Check Getting Started Guide and try the interpreter while you will read the document.

Installation

Node/Webpack

npm install @jcubic/lips
    

then you code use:


var {exec} = require('@jcubic/lips');
// or
import {exec} from '@jcubic/lips';
    

Browser

When using LISP in browser you need to include the file

If you want to use Webpack see wiki page for details


<script src="https://unpkg.com/@jcubic/lips"></script>
    

Usage


  <script type="text/x-lips">
    (print "hello")
    ;; this will load and evaluate external file
    (load "example.lips")
  <script>
    

You can also use src attribute to link to source file


  <script type="text/x-lips" src="example.lips"><script>
    

You can also run the code programatically see last section of Getting Started Guide for details.