Skip to content

Commit

Permalink
Merge branch 'master' of github.com:eigenhombre/smallscheme
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenhombre committed Jul 26, 2022
2 parents 80c229a + 8b7d7b7 commit cbaad75
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ source files, or by launching a REPL for the user:

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).
Expand Down
5 changes: 5 additions & 0 deletions examples/interop_example.scm
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit cbaad75

Please sign in to comment.