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.24.0.tar.gz (951.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.24.0-cp310-abi3-win_arm64.whl (340.4 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_org-0.24.0-cp310-abi3-win_amd64.whl (343.7 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_org-0.24.0-cp310-abi3-musllinux_1_2_x86_64.whl (410.5 kB view details)

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

tree_sitter_org-0.24.0-cp310-abi3-musllinux_1_2_aarch64.whl (409.9 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_org-0.24.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (414.2 kB view details)

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

tree_sitter_org-0.24.0-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (412.6 kB view details)

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

tree_sitter_org-0.24.0-cp310-abi3-macosx_11_0_arm64.whl (366.6 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_org-0.24.0-cp310-abi3-macosx_10_9_x86_64.whl (342.3 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_org-0.24.0.tar.gz
  • Upload date:
  • Size: 951.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tree_sitter_org-0.24.0.tar.gz
Algorithm Hash digest
SHA256 8472a001f2bc59458ed6c559dd5f3345f9e019aef4f47a6076afdb2f5541a07a
MD5 716f33190b74e474d2c834238dd5cc20
BLAKE2b-256 9ef308a77701745fcb469e557a95f661b8846c38b2124f6b178c19fcc9ae4a90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.24.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 5987bd67c48af97c1e04ff9a47c292f81ff441b2408ef4eb6929daf8b225271d
MD5 9ae0146473fcaf4b23391f9b32f5ebd1
BLAKE2b-256 5782852bd4d3bc5f463dcdb774d778f9a9bc278aa586e815ef1a46ed8dc4c830

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.24.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 63b723d1e8b77e84ec33951ebe804c636a0d04db4bdd638efdc006e4fe3d042b
MD5 76727d80ed6b0ccfcb8348232d99197e
BLAKE2b-256 40bc43db240ece4db1409cc24bd4bcc49a4d5a1638a66551a046abda976afdec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.24.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0bdc3c15fa1b4747a7fe5140df2dbee79e68cd209c7cff940ad62c0a55cd4896
MD5 b7bf455c57665fb007c6e413cb4688e3
BLAKE2b-256 c2af00001ecb8dee0b4ba115794b0dd5916b028db16179265d6b6fa9a5bdfd6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.24.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 3f5f0ea531a92c0f7090ac3037b0664fb02474ff83d559530d3e5689816189c6
MD5 d20de3e196c95dd08cbdb2b587857699
BLAKE2b-256 71e329b6f164b32dd17962de6feb4d90d9d28d333485013798918108ea3de122

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.24.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b1b25db507aba48f55f34d9de3f66c8cee6d1ca5c59b8207b40774101572d8d1
MD5 9081b5bb2d9f586181b32a29272d1739
BLAKE2b-256 5dd35f4050f7e8b96ab730af5356c02a3173281b1d13994a202f78d18f2d32aa

See more details on using hashes here.

File details

Details for the file tree_sitter_org-0.24.0-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.24.0-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 48e0c32ee7dcc426e8c5be483168af84bc0a835c8a1a2088a93ea5c71cb0d5b3
MD5 2c0d30a39d21c167cb4d6ef5fc8839ed
BLAKE2b-256 def89d0c78bf46a6b82f30737a3f7e6b8cb4e0f02098418d029292030999151d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.24.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4a84f2d357d7f82b09ac00380de15b1bcfe3f008b6cdb788c3091e446437125
MD5 5577f7e32758031070d6480ebd969c23
BLAKE2b-256 41f26967c2110d61be23449d09c73891d8d0db6d016485d6466a65f81a75b73a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_org-0.24.0-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d1ec3783a28fb1f0f2086bc15076c6fe8db58b49e0e424c65a8237c33e224a95
MD5 44311be8b21c265c2cdd1fb35833d520
BLAKE2b-256 a06b2726e50767cdb8dcd7521114d298a41e6331eeb17cfb800fa8fe766b800a

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