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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd7987b3ba051da58e7c8d5f131c57da34e1e92c19c2d9f1cad115354d4ea79d
|
|
| MD5 |
3692c98bf24bc54085f5fddc7891dfea
|
|
| BLAKE2b-256 |
11be630e2d0ce43e2163a92eee0ea75d9f4ca223b8697c8efb42513317e4017f
|
File details
Details for the file tree_sitter_org-0.23.5-cp310-abi3-win_arm64.whl.
File metadata
- Download URL: tree_sitter_org-0.23.5-cp310-abi3-win_arm64.whl
- Upload date:
- Size: 313.7 kB
- Tags: CPython 3.10+, Windows ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9579ed0d6373e668fc31fa147526e3aae1eaefb557145c81336e1525a11ff87a
|
|
| MD5 |
1ee1ef562370ae2b65d4e9aa66786c20
|
|
| BLAKE2b-256 |
b255d5fb833b87b3f492971c64757b7966614d05e80eb60d4b24caef52361827
|
File details
Details for the file tree_sitter_org-0.23.5-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: tree_sitter_org-0.23.5-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 317.1 kB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b14fb25b9bef7d48e395f47168001ff74aa93984aca09a0a7fe037b943504d66
|
|
| MD5 |
92fd3ccf5dd1682403d2e9d001a630c0
|
|
| BLAKE2b-256 |
8c0baf5ec113c3d24d150c919cbf43fbea0b27e4e5cdebd84bea925aeca572f3
|
File details
Details for the file tree_sitter_org-0.23.5-cp310-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: tree_sitter_org-0.23.5-cp310-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 382.2 kB
- Tags: CPython 3.10+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6644f3587562caf2a79d413b5455eedbbad93efab2f22f52584ee7aa6ef3d418
|
|
| MD5 |
ca2f513abbec6fed174591c0812184c7
|
|
| BLAKE2b-256 |
53d5c5fa551e253c810acadd84fdbbe2023b08a61a31726fb083142ace0d35e7
|
File details
Details for the file tree_sitter_org-0.23.5-cp310-abi3-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: tree_sitter_org-0.23.5-cp310-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 382.1 kB
- Tags: CPython 3.10+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
541e677d7f54d5559737dfb69472caf3ba9450b7d98edfbb6659528f460471ec
|
|
| MD5 |
8a6d1899d17d22feb792c77b3901f9dc
|
|
| BLAKE2b-256 |
444ed4511e917ac994212282eca0ef06ab07b6285d589276e990db3b04fb9b1b
|
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
- Download URL: tree_sitter_org-0.23.5-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 386.3 kB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57c6a0f278b9b768459c6c02412798963c8b38d90e331fa584b0b2a452b5d8c1
|
|
| MD5 |
073864a44c613cbe0a1a4ba7c8ae0b05
|
|
| BLAKE2b-256 |
4fa5382b4943575d69b80108936df63753e6af55e8bb4c3a3be7349d52b4cf17
|
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
- Download URL: tree_sitter_org-0.23.5-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
- Upload date:
- Size: 384.3 kB
- Tags: CPython 3.10+, manylinux: glibc 2.28+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f4a0db4be0f584ae2b3ad2bf03cf3fd7c343f07ef6867378c5eed6d4613808c
|
|
| MD5 |
82000da27781ede032d47116a3e61fe1
|
|
| BLAKE2b-256 |
7a2cc6b3a87ed574e5f8aed12006d751f8f0f5495185f6884b0439ad28b8865d
|
File details
Details for the file tree_sitter_org-0.23.5-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: tree_sitter_org-0.23.5-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 339.1 kB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d4c907365bba432c8aefed2d5fdb49aee50e48877e2e3f7f640ddf327295372
|
|
| MD5 |
d38d4e0b7387cdf943a522485b544d60
|
|
| BLAKE2b-256 |
35f1e39c960ec78dfaeb9840563afb04235705f9b0f75540e8e7bf9e64e161a1
|
File details
Details for the file tree_sitter_org-0.23.5-cp310-abi3-macosx_10_9_x86_64.whl.
File metadata
- Download URL: tree_sitter_org-0.23.5-cp310-abi3-macosx_10_9_x86_64.whl
- Upload date:
- Size: 315.1 kB
- Tags: CPython 3.10+, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dff6b29ceb1430056ef19d777956a7243c1978080989abd030b6079eaba540f
|
|
| MD5 |
78bf8574ea96ca49b7f146662efbbb49
|
|
| BLAKE2b-256 |
5f2664056bd2f1e2dccafba67bc04e286a0b7c8294461ef7db1e06b3a56c926f
|