A collection of example programs in Pre-Scheme
Andrew Whatson 04c22b828e More inlining prevention with exports | 1 年間 前 | |
---|---|---|
lib | 1 年間 前 | |
.envrc | 1 年間 前 | |
.gitignore | 1 年間 前 | |
COPYING | 1 年間 前 | |
Makefile | 1 年間 前 | |
README.org | 1 年間 前 | |
append.c | 1 年間 前 | |
append.scm | 1 年間 前 | |
hello.c | 1 年間 前 | |
hello.scm | 1 年間 前 | |
manifest.scm | 1 年間 前 | |
packages.scm | 1 年間 前 | |
vecfun.err | 1 年間 前 | |
vecfun.scm | 1 年間 前 |
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://gitlab.com/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.