← All projects
Project record1 mention
Originally shared on Hacker News

pta-standards

Formal specifications for plain text accounting formats covering Beancount, Ledger, and hledger. It includes EBNF/ABNF grammars, JSON Schema and Protobuf AST definitions, tree-sitter grammars, Alloy models for invariants, and conformance test suites, so anyone can build a correct, interoperable PTA implementation without reverse-engineering existing tools.

Last shared
01 / The problem

What it addresses

Building a correct, interoperable plain text accounting implementation currently requires reverse-engineering existing tools.

02 / Source history

Shared over time

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

  1. pta-standards

    Formal specifications for plain text accounting formats covering Beancount, Ledger, and hledger. It includes EBNF/ABNF grammars, JSON Schema and Protobuf AST definitions, tree-sitter grammars, Alloy models for invariants, and conformance test suites, so anyone can build a correct, interoperable PTA implementation without reverse-engineering existing tools.

    Problem: Building a correct, interoperable plain text accounting implementation currently requires reverse-engineering existing tools.

    Posted by @robcohen · Original source ↗

    Source text · @robcohen · · Source ↗

    I started this project to create proper formal specifications for plain text accounting formats, covering Beancount, Ledger, and hledger. It includes EBNF/ABNF grammars, JSON Schema and Protobuf AST definitions, tree-sitter grammars, Alloy models for invariants, and conformance test suites. The idea is to make it possible for anyone to build a correct, interoperable PTA implementation without reverse-engineering existing tools.