No description
  • C 75.9%
  • C++ 21.3%
  • JavaScript 2.4%
  • Tree-sitter Query 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Humphrey Drummond 20f5eca07a Add Links section to README
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 18:36:41 +00:00
queries Add tree-sitter grammar for PTA (Plain Text Accounting) files 2026-03-02 13:14:16 +00:00
src Add tree-sitter grammar for PTA (Plain Text Accounting) files 2026-03-02 13:14:16 +00:00
test/corpus Add tree-sitter grammar for PTA (Plain Text Accounting) files 2026-03-02 13:14:16 +00:00
.gitignore Update .gitignore 2026-03-09 18:27:57 +00:00
grammar.js Add tree-sitter grammar for PTA (Plain Text Accounting) files 2026-03-02 13:14:16 +00:00
package-lock.json Add tree-sitter grammar for PTA (Plain Text Accounting) files 2026-03-02 13:14:16 +00:00
package.json Add tree-sitter grammar for PTA (Plain Text Accounting) files 2026-03-02 13:14:16 +00:00
README.md Add Links section to README 2026-03-09 18:36:41 +00:00
task-plus.yml Add task-plus.yml for migration 2026-03-09 18:28:53 +00:00
tree-sitter.json Add tree-sitter grammar for PTA (Plain Text Accounting) files 2026-03-02 13:14:16 +00:00

tree-sitter-pta

Tree-sitter grammar for PTA (Plain Text Accounting) files.

Usage

npm install
npx tree-sitter generate
npx tree-sitter test

Format

# Comment
2024-01-15 * Salary deposit
  Income:Salary -> Asset:Bank salary payment 5000.00 GBP
  +Income:Salary -> Expense:Tax income tax 1000.00 GBP

Elements

Element Pattern Example
date YYYY-MM-DD 2024-01-15
flag * or ! *
payee free text Salary deposit
account Segment:Segment Income:Salary
arrow -> // > ->
amount decimal 5,000.00
commodity uppercase GBP
linked + prefix +Income:Salary
comment # or ; # note
Documentation https://h3-tree-sitter-pta.statichost.page/
Source (Codeberg) https://codeberg.org/hum3/tree-sitter-pta
Mirror (GitHub) https://github.com/drummonds/tree-sitter-pta
Docs repo https://codeberg.org/hum3/tree-sitter-pta-docs