Code Monkey home page Code Monkey logo

lisp.re's Introduction

lisp.re

A Lisp in Reason. Based on (How to Write a (Lisp) Interpreter (in Python))

lisp.re> (begin (define r 10) (* pi (* r r)))
=> 314.159265359

lisp.re> (define square (lambda (x) (* x x)))
=>
lisp.re> (square 2)
=> 4

The main source can be found in this file

Try it in the browser

This codebase can be built for both Javascript and native targets.

web

To build this repo for the Javascript/web target, first check it out, then:

yarn
yarn dev

Then open http://localhost:1234/

native

Clone the repo and run these commands from within the project:

opam update # get the latest opam packages data. Skip this optionally
# opam will read into the `opam` file and add the other dependencies
opam install reason
opam install merlin
opam install re
make build    # build/rebuild your files

Run:

./_build/install/default/bin/lisp

lisp.re's People

Contributors

anmonteiro avatar chenglou avatar jaredly avatar jmorrell avatar jordwalke avatar jsdf avatar nikgraf avatar rgrinberg avatar rubas avatar tekknolagi avatar vramana avatar yunxing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ajinkyakulkarni

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.