An open API service indexing awesome lists of open source software.

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

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