https://github.com/kiranandcode/guile-ocaml
GNU Guile Scheme bindings for OCaml
https://github.com/kiranandcode/guile-ocaml
Last synced: over 1 year ago
JSON representation
GNU Guile Scheme bindings for OCaml
- Host: GitHub
- URL: https://github.com/kiranandcode/guile-ocaml
- Owner: kiranandcode
- License: gpl-3.0
- Created: 2022-06-21T21:22:07.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-05T08:32:46.000Z (almost 4 years ago)
- Last Synced: 2024-10-11T21:48:10.992Z (over 1 year ago)
- Language: OCaml
- Homepage: https://gopiandcode.github.io/guile-ocaml/
- Size: 69.3 KB
- Stars: 16
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Guile-OCaml
Documentation available at: https://gopiandcode.github.io/guile-ocaml/
Guile-ocaml is a Free Software library that provides high-level OCaml
bindings to the FFI interface for GNU Guile Scheme. The aim of these
bindings are to provide an easy way for OCaml developers to extend
their OCaml applications with GNU Guile scheme scripting capabilities,
providing simple combinators to translate terms and send queries
between the two languages.
```ocaml
(* initialise GNU Guile *)
let () = Guile.init () in
(* expose OCaml functions to Guile scheme *)
let _ = Guile.Functions.register_fun1 "my-fun" ~no_opt:1
(fun _ -> print_endline "hello world!"; Guile.eol) in
(* start guile repl *)
Guile.shell ()
```