From a1d64524aebc3ad0e57ee5244729ce7d5f141a75 Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Thu, 4 Jan 2024 23:14:09 -0500 Subject: [PATCH] Add Cosmopolitan instructions --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 8ea8ee9a..f2b3d071 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,24 @@ python3 scrapscript.py apply "1 + 2" python3 scrapscript.py repl ``` +or with [Cosmopolitan](https://justine.lol/cosmopolitan/index.html): + +```bash +./build-com + +# With a file +./scrapscript.com eval examples/0_home/factorial.scrap + +# With a string literal +./scrapscript.com apply "1 + 2" + +# With a REPL +./scrapscript.com repl +``` + +(if you have an exec format error and use Zsh, either upgrade Zsh or prefix +with `sh`) + or with Docker: ```bash