← All projects
Project record1 mention
Originally shared on Hacker News

Dogma

A modernized BNF-style metalanguage with better expressiveness and binary grammar support, designed to describe and document data formats for human consumption, with features like length variables and arithmetic in grammar rules.

Last shared
01 / The problem

What it addresses

Describing the data format was painful because most existing metalanguages are only for describing textual grammars, and the few that support binary aren't really suited for documenting for human consumption.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Dogma

    A modernized BNF-style metalanguage with better expressiveness and binary grammar support, designed to describe and document data formats for human consumption, with features like length variables and arithmetic in grammar rules.

    Problem: Describing the data format was painful because most existing metalanguages are only for describing textual grammars, and the few that support binary aren't really suited for documenting for human consumption.

    Posted by @kstenerud · Original source ↗

    Source text · @kstenerud · · Source ↗

    So I'm putting the finishing touches on Dogma ( https://github.com/kstenerud/dogma/blob/master/dogma_v1.md ), a modernized BNF-style metalanguage with better expressiveness and binary grammar support.