A collection of example programs in Pre-Scheme
Andrew Whatson 5127d52168 Update generated C sources | 7 meses atrás | |
---|---|---|
lib | 1 ano atrás | |
.dir-locals.el | 1 ano atrás | |
.envrc | 1 ano atrás | |
.gitignore | 1 ano atrás | |
COPYING | 1 ano atrás | |
Makefile | 7 meses atrás | |
README.org | 1 ano atrás | |
append.c | 7 meses atrás | |
append.scm | 1 ano atrás | |
btree.c | 7 meses atrás | |
btree.scm | 1 ano atrás | |
hello.c | 7 meses atrás | |
hello.scm | 1 ano atrás | |
manifest.scm | 7 meses atrás | |
packages.scm | 1 ano atrás | |
ps-init.h | 7 meses atrás | |
recfun.c | 7 meses atrás | |
recfun.scm | 1 ano atrás | |
vecfun.c | 7 meses atrás | |
vecfun.scm | 7 meses atrás |
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://notabug.org/flatwhatson/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.