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.8.tar.gz (950.5 kB 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.8-cp310-abi3-win_arm64.whl (340.2 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_org-0.23.8-cp310-abi3-win_amd64.whl (343.4 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_org-0.23.8-cp310-abi3-musllinux_1_2_x86_64.whl (410.2 kB view details)

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

tree_sitter_org-0.23.8-cp310-abi3-musllinux_1_2_aarch64.whl (409.8 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_org-0.23.8-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (414.1 kB view details)

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

tree_sitter_org-0.23.8-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (412.4 kB view details)

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

tree_sitter_org-0.23.8-cp310-abi3-macosx_11_0_arm64.whl (366.2 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_org-0.23.8-cp310-abi3-macosx_10_9_x86_64.whl (342.0 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_org-0.23.8.tar.gz
  • Upload date:
  • Size: 950.5 kB
  • 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.8.tar.gz
Algorithm Hash digest
SHA256 7d20408829a44a67530a4c8de46996e40eea26c55d72ffd4b854b8b3739c1adf
MD5 af167a9dd59002c2c7d3c72385982182
BLAKE2b-256 19d1794b075cbe87d8d08b2945119e0deb5e883c07dc73678da4d28e847b75a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.8-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 3123bc413f26c0c66dc35d5fe0863d768cda4b5523293f66771fd1eaaf7c8ee6
MD5 90694193c9399d95ad719f92c1c74e2d
BLAKE2b-256 8e33eb522cd90646303d2093279bc5cb7b6a15643e0d5f75ba78cd63ef52488e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.8-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5ba05bd4fcbda158c2188c93c71b3bb277b273c7a157571b37eb6f24da4adace
MD5 0b4ed91b128f93d982b7ded6de8324a0
BLAKE2b-256 8462778da9873e54433e508546d8e3b7da128d82bf87f338045b7496bf14d2d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.8-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f3494f6a1b6f5541e527488cd8021b3807d7454d7feae4ae21cc6f64163f3244
MD5 63fd83641a1709999cb9c733946198ec
BLAKE2b-256 3a745b3801bf7650f71b898e47d51c815effebf882cc2a48c6adc59f3e697aaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.8-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 6f5460ff65bdcf1c9afd472dd9087da4b17a6a13621893c2643072999cafc784
MD5 35a96e2504af66da7a0d8934f55c406d
BLAKE2b-256 a55d251edaba8c417c1dcbc6483fa0da922df594045a3d0d95775bfdfd7d36c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.8-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d02f5efcb28ef8065a59f2e42dced133af04119e23a1731f983a46784b20b34b
MD5 f26b232fb805ad93635b6497f077a7e8
BLAKE2b-256 2d8d6fb42787671bbe8922cbf00a59e4e094dda82987a2f6cd0f8e0a224bf385

See more details on using hashes here.

File details

Details for the file tree_sitter_org-0.23.8-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.8-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ca68c83b993c5fcc9453f84f1ae835d41209fa74c2ad6dc5dd62a8933db8334e
MD5 6cb3cdcdb4db90fdff8cf01e46e491cf
BLAKE2b-256 56dc92116435c30fa05e5d71dbf59c0ce42eee0ada652c032d2fa4336352080f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.8-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ad2bd35477f37ac6087d5b0e9c1bb1f3e0ba48706724d5f00099394b032123b
MD5 23c3936cf4b773211b8a3fe5cbc06937
BLAKE2b-256 965704dd45d933cdd25f8ec90d73b141e93a9ff209a2457f0e1444d45420643b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.8-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b39f59d139919ba7c6aede93ee4d2233c22ab2c1ae6634f83cbc07f8e8fb3e62
MD5 bcac8ccbad8f5a079fef535e996a8e55
BLAKE2b-256 af83b79d65e789b59e30a490b1738d4838a0847f7fd9c238f4d8ead11f35692b

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