Skip to content

tylerchr/gravitas

Repository files navigation

Gravitas GoDoc

Gravitas implements Go bindings for the Gravity programming language.

This package started as an experiment to teach myself a little bit about cgo, and as such is basically a proof-of-concept. Half-implemented bindings and undiagnosed segfaults abound. Gravitas is not ready for production use.

Usage

$ go get github.com/tylerchr/gravitas

# clone the gravity submodule
$ cd $GOPATH/src/github.com/tylerchr/gravitas
$ git submodule init
$ git submodule update

# build and install the gravity library
$ cd $GOPATH/src/github.com/tylerchr/gravitas/gravity
$ make lib
$ cp libgravity.dylib /usr/local/lib/libgravity.dylib

# run the example program
$ cd $GOPATH/src/github.com/tylerchr/gravitas/cmd/example
$ go build
$ ./example italy.gravity