Discussion

Ask HN: Please critique my metalanguage: “Dogma”

Hi HN!

Dogma (formerly KBNF) is a modernized metalanguage with better expressiveness and binary support, focusing on documentation. It follows the familiar patterns of Backus-Naur Form, and includes a number of innovations that make it also suitable for describing binary data.

Link here: https://github.com/kstenerud/dogma/blob/master/dogma_v1.md

I've been working hard after the feedback I got in https://news.ycombinator.com/item?id=34720488 and would really appreciate another round of critiques :)

A lot of the changes were to harmonize the grammar so that the language "feels" more consistent with fewer surprising behaviors and edge cases.

If you use metalanguage grammars, please take a gander and let me know where Dogma might cause problems in your use cases!

Thanks :)

14 points kstenerud 3 years ago 11 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton