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.6.tar.gz (940.3 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.6-cp310-abi3-win_arm64.whl (339.8 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_org-0.23.6-cp310-abi3-win_amd64.whl (343.6 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_org-0.23.6-cp310-abi3-musllinux_1_2_x86_64.whl (409.6 kB view details)

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

tree_sitter_org-0.23.6-cp310-abi3-musllinux_1_2_aarch64.whl (408.4 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_org-0.23.6-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (412.8 kB view details)

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

tree_sitter_org-0.23.6-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (411.6 kB view details)

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

tree_sitter_org-0.23.6-cp310-abi3-macosx_11_0_arm64.whl (366.3 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_org-0.23.6-cp310-abi3-macosx_10_9_x86_64.whl (341.9 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_org-0.23.6.tar.gz
  • Upload date:
  • Size: 940.3 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.6.tar.gz
Algorithm Hash digest
SHA256 4aafa0ebee95c8f69598145783845b1fb7497721e708ec15c7233fcefa3deb47
MD5 a555a1ce7b9bc9b97319e1d79309f7b1
BLAKE2b-256 6abd45829350e07e0490ad9115b3a2c340a37bfd1d5be996c520f02eb92dc228

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.6-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 970e7634b95c0a59f6bea71bbea56b256da60639a95efe18d0998da769ca9658
MD5 696a0fe1b6b8faea7ff29a0df10e6df1
BLAKE2b-256 53faf80310f93b9ce59ccd41a05f2a42bc804ecd47918681e56e6e65d45d7513

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.6-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0f5bdb78db0d076e0326ce2118cc363baa82dcb68b074e7d97acbdd8e1e94a6a
MD5 28f87a46603a52169ef358cdc3b96190
BLAKE2b-256 07d6b9618c6e253ba43c2c816d9e35997fb2c2a81a8f428f167cba07ca21814e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.6-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8199190c4ca25a569cd5d7c641d6385e164f6a2dd13a28dd0d26ffa49f66817e
MD5 a033fcab84aa23f9e788aab267f59d6b
BLAKE2b-256 6e3fa349ca0f61bd02214ca0a1ca1a01533dc8ff03f6b4a76489a4e5861b4c73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.6-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 4e932d4ebb8d0d5800f1d5a23d0487f9fb63fde219b40c8a603a8adc4d3cda5b
MD5 ba317ba35094f87b5f6c8ac660fe1347
BLAKE2b-256 61cc8bb50994bdc026781535a8090de0367ca355f266c0f2a2c4146c9777b05e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.6-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 75d813961e9dd3ddaca69f0617de6d50e4fe97d245b476b3ae3677ca4af7d0d8
MD5 90cdbcc66d63c8714bd830cb1bc8b42c
BLAKE2b-256 0516b62787236c5be4107ddd8bf203355087d4bde712efd7a8a72d2548fd64cc

See more details on using hashes here.

File details

Details for the file tree_sitter_org-0.23.6-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.6-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1edda97d3247c6f02094f3abf49644073f2cbffc88d80318df9eff0dd920f4d8
MD5 a2494939f6e2ac182343692920c298a0
BLAKE2b-256 cb3b6bf2e63c485b80073f6f1b615d80928efe57aa8a10bcd894ba3a4e2ce252

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.6-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1febe55243c9aa4b820537158c2890da699ae46269d6ef4eef509b635f91f55
MD5 f9d434269d3ebf470305267cddac5222
BLAKE2b-256 70ad4757abab98f498aebbe3a9cbb6f09ed24b7a973bab9c99fc85c6be90e120

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.6-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9fc099d94c212128be9727a2d175aad98ad40f306d402eae403168cb7abceb8a
MD5 7889fc1d282d77a7b62a69a95c9f095d
BLAKE2b-256 13c16521e68e3944ce94bed3bd2e02377cb00719fcc4501152b82ebfb42fd3a8

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