From 3e659ecb7233fd892dd7f684971a6b8e4fc49a33 Mon Sep 17 00:00:00 2001 From: John Jacobsen Date: Mon, 25 Jul 2022 14:48:37 -0500 Subject: [PATCH 1/2] Update interop_example.scm --- examples/interop_example.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/interop_example.scm b/examples/interop_example.scm index 2856a8a..478afa8 100644 --- a/examples/interop_example.scm +++ b/examples/interop_example.scm @@ -1,3 +1,8 @@ +;; This code relies on interop_example.py to wire in two new Python functions. + +;; Use the Mac's speech synthesis command to speak the following text out loud: (say (quote (welcome to the monkey house))) + +;; Display all the user logins found by the `last` command: (display (lastusers)) (newline) From 8b7d7b7cac050bf9c1219baee1c615a6b66df1b0 Mon Sep 17 00:00:00 2001 From: John Jacobsen Date: Mon, 25 Jul 2022 20:27:27 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 2fc94bd..40bcaa3 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,12 @@ executing one or more Scheme source files, or by launching a REPL: smallscheme.repl() +... and the new function can then be called from Scheme: + + scheme> (inc 1) + ;;=> + 2 + For a full list of data type operators (for converting from Python to Scheme and vice-versa), look at [dtypes.py](https://github.com/eigenhombre/smallscheme/blob/master/smallscheme/dtypes.py).