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.5.tar.gz (889.4 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.5-cp310-abi3-win_arm64.whl (313.7 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_org-0.23.5-cp310-abi3-win_amd64.whl (317.1 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_org-0.23.5-cp310-abi3-musllinux_1_2_x86_64.whl (382.2 kB view details)

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

tree_sitter_org-0.23.5-cp310-abi3-musllinux_1_2_aarch64.whl (382.1 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_org-0.23.5-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (386.3 kB view details)

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

tree_sitter_org-0.23.5-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (384.3 kB view details)

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

tree_sitter_org-0.23.5-cp310-abi3-macosx_11_0_arm64.whl (339.1 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_org-0.23.5-cp310-abi3-macosx_10_9_x86_64.whl (315.1 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_org-0.23.5.tar.gz
  • Upload date:
  • Size: 889.4 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.5.tar.gz
Algorithm Hash digest
SHA256 dd7987b3ba051da58e7c8d5f131c57da34e1e92c19c2d9f1cad115354d4ea79d
MD5 3692c98bf24bc54085f5fddc7891dfea
BLAKE2b-256 11be630e2d0ce43e2163a92eee0ea75d9f4ca223b8697c8efb42513317e4017f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.5-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 9579ed0d6373e668fc31fa147526e3aae1eaefb557145c81336e1525a11ff87a
MD5 1ee1ef562370ae2b65d4e9aa66786c20
BLAKE2b-256 b255d5fb833b87b3f492971c64757b7966614d05e80eb60d4b24caef52361827

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.5-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b14fb25b9bef7d48e395f47168001ff74aa93984aca09a0a7fe037b943504d66
MD5 92fd3ccf5dd1682403d2e9d001a630c0
BLAKE2b-256 8c0baf5ec113c3d24d150c919cbf43fbea0b27e4e5cdebd84bea925aeca572f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.5-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6644f3587562caf2a79d413b5455eedbbad93efab2f22f52584ee7aa6ef3d418
MD5 ca2f513abbec6fed174591c0812184c7
BLAKE2b-256 53d5c5fa551e253c810acadd84fdbbe2023b08a61a31726fb083142ace0d35e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.5-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 541e677d7f54d5559737dfb69472caf3ba9450b7d98edfbb6659528f460471ec
MD5 8a6d1899d17d22feb792c77b3901f9dc
BLAKE2b-256 444ed4511e917ac994212282eca0ef06ab07b6285d589276e990db3b04fb9b1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.5-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 57c6a0f278b9b768459c6c02412798963c8b38d90e331fa584b0b2a452b5d8c1
MD5 073864a44c613cbe0a1a4ba7c8ae0b05
BLAKE2b-256 4fa5382b4943575d69b80108936df63753e6af55e8bb4c3a3be7349d52b4cf17

See more details on using hashes here.

File details

Details for the file tree_sitter_org-0.23.5-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.5-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4f4a0db4be0f584ae2b3ad2bf03cf3fd7c343f07ef6867378c5eed6d4613808c
MD5 82000da27781ede032d47116a3e61fe1
BLAKE2b-256 7a2cc6b3a87ed574e5f8aed12006d751f8f0f5495185f6884b0439ad28b8865d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.5-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d4c907365bba432c8aefed2d5fdb49aee50e48877e2e3f7f640ddf327295372
MD5 d38d4e0b7387cdf943a522485b544d60
BLAKE2b-256 35f1e39c960ec78dfaeb9840563afb04235705f9b0f75540e8e7bf9e64e161a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.23.5-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1dff6b29ceb1430056ef19d777956a7243c1978080989abd030b6079eaba540f
MD5 78bf8574ea96ca49b7f146662efbbb49
BLAKE2b-256 5f2664056bd2f1e2dccafba67bc04e286a0b7c8294461ef7db1e06b3a56c926f

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