Go to file
Yuichi Nishiwaki 0bf0c29af2 fix a typo 2013-10-29 02:12:37 +09:00
bin
etc add tak function benchmark file 2013-10-28 22:08:57 +09:00
extlib/xhash fix a memory bug in xhash 2013-10-23 20:09:06 +09:00
include fix a typo 2013-10-29 02:12:37 +09:00
lib git file management 2013-10-20 18:47:05 +09:00
piclib add built-in library 2013-10-27 18:38:55 +09:00
src introduce immediate symbol value 2013-10-29 02:11:31 +09:00
tools the executable binary takes a scheme file to execute in cmd arg line 2013-10-28 22:08:03 +09:00
.gitignore git file management 2013-10-20 18:47:05 +09:00
Makefile add -g option to the build command line 2013-10-23 15:46:57 +09:00
README.md update README 2013-10-20 21:44:31 +09:00

README.md

This product is developed at the second-grade course, Informatic Science
Basic Experiment class at the University of Tokyo.

Picrin - a lightweight scheme interpreter

Freatures

  • R7RS compatibility (but partial support)
  • reentrant design (all VM states are stored in single global state object)
  • bytecode interpreter (based on Stack VM technology)
  • direct threaded VM
  • exact GC (simple mark and sweep strategy)
  • advanced REPL support (multi-line input, etc)
  • tiny & portable library (all functions will be in libpicrin.so)

Homepage

Currently picrin is hosted on Github. You can freely send a bug report or pull-request, and fork the repository.

https://github.com/wasabiz/picrin

How to use it

  • build

      $ make build
    

    built executable binary will be under bin/ directory and shared library libpicrin.so under lib/.

  • run

    Simply directly run the binary bin/picrin from terminal, or you can use make to execute it like this.

      $ make run
    

In the default option, when make command is called without arguments, it builds the binary and right after that dropped into the picrin interactive shell (REPL).

  • install

    As of now picrin does not provide a command automatically installs the binary. If you want to place picrin library and binary in a parmanent directory, please do it by hand.

Requirement

picrin scheme depends on some external libraries to build the binary:

  • bison
  • yacc
  • make
  • gcc
  • readline

The compilation is tested only on Mac OSX. I think (or hope) it'll be ok to compile and run on other operating systems such as Linux or Windows, but there's no guarantee :(

Authors

Yuichi Nishiwaki (yuichi.nishiwaki at gmail.com)