Skip to content

OCaml bindings for calling and running J scripts

Notifications You must be signed in to change notification settings

jonghough/ocaml2j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ocaml2j

Example programm calling j.dll (libj.so) from Ocaml.

Functions

j.dll functions

JInit, JDo, JFree, JGetM are mapped to Ocaml functions:

jinit, jfree, jdo, jget

and J types Boolean, Integer, Floating, Literal are mapped to


type jBool = JBool of bool
type jInt = JInt of int
type jFloat = JFloat of float

Other types are not supported (yet).

Building and running

to build -> ./build.sh

to run -> ./callc.byte

Tested platforms

This has been tested on 32-bit Linux only. For other OSes, obviously the correct library file is needed. Definitely not tested on 64-bit yet.

About

OCaml bindings for calling and running J scripts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published