Code Monkey home page Code Monkey logo

lispkit's Introduction

This program is an implementation of the Lispkit described in the 
book "FUNCTIONAL PROGRAMMING: Application and Implementation", by
Peter Henderson, ISBN 0-13-331579-7, Prentice-Hall International, 1980.

If you have a C compiler and make, like gcc and gmake, you can
 build the program with:

  make

If compilation is successful, you can test lispkit - this will 
attempt some of the examples from table 12.1 and 12.2 in the book.

  make test


INSTALLATION
------------

To install lispkit to your system:

  [sudo] make install

To remove lispkit:

  [sudo] make uninstall


USING
-----

To compile a lispkit program, use the lispkitc script:

  lispkitc infile [outfile]


For example:

  ./lispkitc examples/square.lisp square.bin


To run a lispkit program:

  lispkit program [argument]


If no argument file is given, lispkit will read from stdin.


For example:

  echo 16 | ./lispkit square.bin



lispkit's People

Contributors

carld avatar neauoire avatar tmishra avatar yuyaaizawa avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

lispkit's Issues

GC timing bug

I found a bug that the GC collects "alloced and not linked to stack" cons-cell.
This happens, for example, when GC occurs during _ap.

lispkit/secd.c

Line 181 in 3ddbe43

_dump = cons(cdr(cdr(_stack)),cons(_environ,cons(cdr(_control), _dump)));

When center cons couse GC, cons-cell alloced by right cons is collected.

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.