Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Background

If you feel that God syntax is familiar, that's probably because it is. God isn't a new syntax; it is derived directly from the Nix programming language. Any valid God code can be validated directly by Nix, with nix eval -f file.god. I saw no need to create a new language when I realized Nix had exactly the bones needed to derive a flexible (and easy to understand) data serialization format. God is a subset of Nix which omits it's programming syntax and features in favor of static data representation.

Some of the benefits include:

  • It can be validated by nix
  • Conversion from GOD to JSON with nix eval -f file.god --json
  • A number of existing tools for working with Nix code can be used

If you would like to see some sample document files, see the examples page.