No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Humphrey Drummond 5700896b00
Some checks failed
Deploy docs to GitHub Pages / build (push) Has been cancelled
Deploy docs to GitHub Pages / deploy (push) Has been cancelled
Deploy static content to Pages / deploy (push) Has been cancelled
Update CHANGELOG for v0.1.17
2026-03-27 11:10:03 +00:00
.claude improved docs 2026-03-06 00:55:52 +00:00
.github/workflows Merge branch 'main' of github.com:drummonds/plain-text-accounting-formats 2026-03-05 23:55:16 +00:00
cmd Migrate module path from github.com to codeberg.org 2026-03-26 23:02:28 +00:00
docs Start of repeating transactions 2026-03-27 11:09:21 +00:00
testdata Starting conversion 2026-03-02 01:20:48 +00:00
.gitignore update docs 2026-03-14 21:58:57 +00:00
beancount.go fixed highlighting 2026-03-25 00:19:13 +00:00
beancount_test.go Starting conversion 2026-03-02 01:20:48 +00:00
CHANGELOG.md Update CHANGELOG for v0.1.17 2026-03-27 11:10:03 +00:00
convert.go fixed highlighting 2026-03-25 00:19:13 +00:00
convert_test.go Starting conversion 2026-03-02 01:20:48 +00:00
go.mod Migrate module path from github.com to codeberg.org 2026-03-26 23:02:28 +00:00
go.sum fixed highlighting 2026-03-25 00:19:13 +00:00
goluca.go fixed highlighting 2026-03-25 00:19:13 +00:00
goluca_test.go Update to new formatter 2026-03-15 23:34:39 +00:00
highlight.go fixed highlighting 2026-03-25 00:19:13 +00:00
LICENSE Initial commit 2026-02-27 12:37:48 +00:00
README.md Migrate module path from github.com to codeberg.org 2026-03-26 23:02:28 +00:00
ROADMAP.md improved docs 2026-03-06 00:55:52 +00:00
task-plus.yml adding linter 2026-03-15 00:14:05 +00:00
Taskfile.yml Start of repeating transactions 2026-03-27 11:09:21 +00:00

Plain Text Accounting Formats

Comparison of plain text accounting formats with tree-sitter parsing and syntax highlighting.

Formats Covered

Documentation

Full format documentation with grammar definitions and examples: docs/internal

Install

go install codeberg.org/hum3/plain-text-accounting-formats/cmd/ptaf@latest

CLI Usage

gts-beancount parse ledger.beancount
gts-beancount highlight ledger.beancount
gts-beancount check ledger.beancount

Library Usage

import ptaf "codeberg.org/hum3/plain-text-accounting-formats"

tree, err := beancount.Parse(src)
ranges, err := beancount.Highlight(src)
golucaSrc, err := beancount.Convert(src)

Build & Test

task check       # fmt + vet + test
task docs:build  # generate HTML docs

How documentation fits together

Go library and CLI for parsing and syntax-highlighting plain-text accounting formats (beancount, goluca, PTA) using gotreesitter.

So this is linked to other sites:

Documentation https://h3-pta-formats.statichost.page/
Source (Codeberg) https://codeberg.org/hum3/plain-text-accounting-formats
Mirror (GitHub) https://github.com/drummonds/plain-text-accounting-formats