A collection of example programs in Pre-Scheme
Andrew Whatson 8ed1788b54 Tidy up prime-sum demo | 3 dagen geleden | |
---|---|---|
include | 1 week geleden | |
lib | 4 dagen geleden | |
.dir-locals.el | 1 jaar geleden | |
.envrc | 1 jaar geleden | |
.gitignore | 4 dagen geleden | |
COPYING | 1 jaar geleden | |
Makefile | 4 dagen geleden | |
README.org | 4 dagen geleden | |
append.c | 1 week geleden | |
append.scm | 1 jaar geleden | |
btree.c | 1 week geleden | |
btree.scm | 1 jaar geleden | |
game-of-life.c | 1 week geleden | |
game-of-life.scm | 1 week geleden | |
hello.c | 1 week geleden | |
hello.scm | 1 jaar geleden | |
manifest.scm | 4 dagen geleden | |
packages.scm | 3 dagen geleden | |
prime-sum.c | 3 dagen geleden | |
prime-sum.scm | 3 dagen geleden | |
recfun.c | 1 week geleden | |
recfun.scm | 1 jaar geleden | |
vecfun.c | 4 dagen geleden | |
vecfun.scm | 7 maanden geleden |
This repository contains some basic examples of Pre-Scheme code, and a simple Makefile for compiling these into native executables.
These examples are based on the one provided in "The Nearly Complete Scheme48 PreScheme Reference Manual" by Taylor Campbell: https://groups.scheme.org/prescheme/1.3/
The generated C for each of the demo programs is also included, so you can review the code generation without needing to build anything.
The Guix manifest sets up all prerequisites for building the demos, and compilation is handled by the Makefile.
To build the demos yourself:
git clone https://codeberg.org/prescheme/prescheme-demo.git
cd prescheme-demo
guix shell -m manifest.scm
make
This code is licensed under BSD-3-Clause, the same as Scheme 48 and the Pre-Scheme compiler. See COPYING for details.