https://github.com/gregorybchris/scraps
Scrapscript Scraps
https://github.com/gregorybchris/scraps
example programs scrapscript
Last synced: about 14 hours ago
JSON representation
Scrapscript Scraps
- Host: GitHub
- URL: https://github.com/gregorybchris/scraps
- Owner: gregorybchris
- Created: 2023-12-26T08:26:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-01T23:01:15.000Z (over 1 year ago)
- Last Synced: 2025-03-02T02:33:24.266Z (11 months ago)
- Topics: example, programs, scrapscript
- Homepage:
- Size: 21.5 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scraps
[Scrapscript](https://scrapscript.org/) is a programming language that aims to solve the software shareability problem. This repo contains a few example programs written in Scrapscript.
> Note: The Scrapscript language is still under active development and syntax may change. Code here has been tested with an early version of the [tekknolagi/scrapscript](https://github.com/tekknolagi/scrapscript) interpreter.
## Programs
- [bfs](bfs.scrap) - grid-based breadth-first search
- [hull](hull.scrap) - convex hull with the gift wrapping (Jarvis march) algorithm
- [church](church.scrap) - Church encodings for numbers, booleans, pairs, and lists
- [random](random.scrap) - linear congruential generator (LCG) for random numbers
- [ca](ca.scrap) - rule 30 cellular automaton
- [shapes](shapes.scrap) - area and volume calculations
- [tree](tree.scrap) - binary tree insertion and traversal
- [eval](eval.scrap) - small expression evaluator