Skip to main content

Tree-sitter grammar for Org Mode syntax

Project description

#+TITLE: Tree-Sitter Org-Mode parser

* Overview
This project implements a Tree-Sitter-based parser for Emacs Org-Mode files.

The long-term goal is high fidelity and eventually 100% feature coverage, while
keeping robust error recovery and useful parse trees for downstream processing.

* Supported features
Parsing [[examples/showcase.org][this file]] results in [[examples/showcase.tree-sitter][the following parse tree]].
See the other [[file:examples/][example files]] to get a better idea what this parser can parse.

* Gotchas
- Table.el tables parse as verbatim blocks of text. Their contents are inaccessible.
- Malformed objects are usually treated as plaintext or recovered with generic
parse-error nodes.

* Explicitly Not Supported
- Inline tasks are not represented as a dedicated node type,
they are treated as regular headings.
- Sexp timestamps (like =<%%(...)>=) are not parsed as regular timestamp nodes,
they are plain text instead.
- LaTeX fragments & environments are not parsed as structured Org objects,
they are plain text instead.

* Roadmap
See [[file:ROADMAP.org][ROADMAP.org]] for planned work and milestone history.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tree_sitter_org-0.23.7.tar.gz (1.0 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tree_sitter_org-0.23.7-cp310-abi3-win_arm64.whl (355.7 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_org-0.23.7-cp310-abi3-win_amd64.whl (358.8 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_org-0.23.7-cp310-abi3-musllinux_1_2_x86_64.whl (425.7 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ x86-64

tree_sitter_org-0.23.7-cp310-abi3-musllinux_1_2_aarch64.whl (425.8 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_org-0.23.7-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (430.1 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

tree_sitter_org-0.23.7-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (427.8 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

tree_sitter_org-0.23.7-cp310-abi3-macosx_11_0_arm64.whl (382.1 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_org-0.23.7-cp310-abi3-macosx_10_9_x86_64.whl (356.2 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

Details for the file tree_sitter_org-0.23.7.tar.gz.

File metadata

  • Download URL: tree_sitter_org-0.23.7.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tree_sitter_org-0.23.7.tar.gz
Algorithm Hash digest
SHA256 bc3c14d0b730e2340f4dc78ddf4c0123a1288ad6b2ac2fe8355e998cc184c517
MD5 02c5522ce435aef0971ee4d14b7d01ba
BLAKE2b-256 865229287f5989a6ca40560c4586eef6ccb237916343e2d91e8e6e4e7fd1bd69

See more details on using hashes here.

File details

Details for the file tree_sitter_org-0.23.7-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_org-0.23.7-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 de7ccabd59020af485135eed3e78a8f0fa0d4a14eb2356c457f00a814781ddd4
MD5 8667ada4f2e053d010062846b2868388
BLAKE2b-256 ee7a3825f29625e3aabcec2dd8516d149ff63eb069c03bc456961d0d84c8bfe0

See more details on using hashes here.

File details

Details for the file tree_sitter_org-0.23.7-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_org-0.23.7-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3019f96038f4b780548c852dcbeede01bc030b02b1f0608ac6f6ce563bbab663
MD5 de621f15d6177774dc5ce7a6c122fb65
BLAKE2b-256 d0f7129d9e6ea80f6f646149e36c24d0f77a807af9a4a4d6fcfe73fb3a450227

See more details on using hashes here.

File details

Details for the file tree_sitter_org-0.23.7-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_org-0.23.7-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c8c9baa45a9cd191a79209f1895266183d6bec5a1c42a99c7fb1bd8c7e3598a3
MD5 c3fb1a394eebc944b66ce4d105ea8b84
BLAKE2b-256 5b969a6d111ee7df6eb07447292c67be836468d19f2a09ad36692d8c0ef07010

See more details on using hashes here.

File details

Details for the file tree_sitter_org-0.23.7-cp310-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_org-0.23.7-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 a1dfac4ae4d86269d3ff82a70db2383723170d69aa0880361f14b6c7ad0cee08
MD5 2f7885b19e8a185d18abe989428563d9
BLAKE2b-256 d89864925de562b4d67a51094e28b5f9fd4674a7d3e561b00ded008a10fc7e40

See more details on using hashes here.

File details

Details for the file tree_sitter_org-0.23.7-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_org-0.23.7-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 318cb6a45815f25afd91c0cc73cd24d3782fbfb2a015cb36c4b7af32069f1df5
MD5 5ed73c5a5c1a53c2b7ddd14dac035839
BLAKE2b-256 fbfcbab96ca76a3766f1b85f093f323dea608c2f5795496a61773122c30b6b2d

See more details on using hashes here.

File details

Details for the file tree_sitter_org-0.23.7-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_org-0.23.7-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 386be85acf14a3999d1db3bd1c1b3ef75d0485441f7145fe9162059b3252b094
MD5 116e9ad39bfd588274e06784ce8f2a5c
BLAKE2b-256 c8fc1955fa52462b59616f6886896fb53c782c41329ac2b15729b418639321cb

See more details on using hashes here.

File details

Details for the file tree_sitter_org-0.23.7-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_org-0.23.7-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 419bfb8c5f5c1a05910cda1dfb974d8e87799baa0ffdced43ac88ea8f2ea8fed
MD5 e51d36aeb7c51f8df0957eb8c5e3adce
BLAKE2b-256 590634d186e353b7fd6524d9bd7d5c1bff0e3a3d3ad9e8939a1df8aa149fd0f5

See more details on using hashes here.

File details

Details for the file tree_sitter_org-0.23.7-cp310-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_org-0.23.7-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0189541f8235e73d777bd6849b365d8e5c6c63794c02611df9d0a599fb9f7207
MD5 2e4c043cd8ff155a25f548e845736508
BLAKE2b-256 86f486e3d109a703a62cd2a6bce3f19ea127cbb87a803e3a401b9f3a292db56f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page