Go to file
Brian Picciano 92f93ff076 Implement Decoder
The sytax has ultimately remained unchanged, except for the new ability
to have tuples as edge values, changing the tuple value separator to
`,`, and allowing for the eliding of trailing `;` and `,`.
2022-12-27 17:15:24 +01:00
cmd/eval Complete refactor vm to not be as stupid 2022-03-31 09:27:52 -06:00
examples Got basic demo working, ran go fmt 2021-12-30 15:29:38 -07:00
gg Complete refactor vm to not be as stupid 2022-03-31 09:27:52 -06:00
graph Got basic demo working, ran go fmt 2021-12-30 15:29:38 -07:00
rust Implement Decoder 2022-12-27 17:15:24 +01:00
sandbox rename Junction to Tuple, update syntax, rename Null to ZeroGraph 2021-08-26 21:26:24 -06:00
vm Complete refactor vm to not be as stupid 2022-03-31 09:27:52 -06:00
.gitignore gitignore 2016-08-07 09:06:36 -06:00
default.nix Make graph generic 2021-12-29 12:32:53 -07:00
go.mod Make graph generic 2021-12-29 12:32:53 -07:00
go.sum make into a module 2021-08-26 21:27:47 -06:00
README.md Complete refactor vm to not be as stupid 2022-03-31 09:27:52 -06:00

Ginger

A programming language utilizing a graph datastructure for syntax. Currently in super-early-alpha-don't-actually-use-this-for-anything development.

Development

Current efforts on ginger are focused on a golang-based virtual machine, which will then be used to bootstrap the language. go >=1.18 is required for this vm.

If you are on a linux-amd64 machine with nix installed, you can run:

nix-shell -A shell

from the repo root and you will be dropped into a shell with all dependencies (including the correct go version) in your PATH, ready to use. This could probably be expanded to other OSs/architectures easily, if you care to do so please check out the default.nix file and submit a PR!

Demo

An example program which computes the Nth fibonacci number can be found at examples/fib.gg. You can try it out by doing:

go run ./cmd/eval/main.go "$(cat examples/fib.gg)" 5

Where you can replace 5 with any number.