Parser for input file for the Orca quantum chemistry package
Project description
Tree-sitter ORCA
A Tree-sitter grammar for ORCA quantum chemistry input files.
ORCA is a quantum chemistry package for electronic structure calculations. This grammar parses ORCA input files (.inp) including simple command lines, input blocks, geometry specifications, and variable definitions.
Installation
PyPI
pip install tree-sitter-orca
Neovim with nvim-treesitter
Add to your init.lua:
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.orca = {
install_info = {
url = "https://github.com/yourusername/tree-sitter-orca",
files = { "src/parser.c" },
branch = "main",
},
filetype = "inp",
}
Create syntax highlighting:
mkdir -p ~/.config/nvim/queries/orca
ln -s /path/to/tree-sitter-orca/queries/highlights.scm ~/.config/nvim/queries/orca/highlights.scm
Distribution
This grammar is distributed via PyPI for Python applications and can be integrated into text editors through nvim-treesitter or similar extensions.
[!important] After grammar changes:
- Regenerate:
tree-sitter generate- Update in editors:
TSUpdate orca(nvim)
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 Distribution
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_orca-0.1.0.tar.gz.
File metadata
- Download URL: tree_sitter_orca-0.1.0.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c86e16b7571dc67a21a0b3b0f3046bb643866182c37667c421a9ed91d71922cb
|
|
| MD5 |
0176102b9ff8b777f07c2ce9effcb243
|
|
| BLAKE2b-256 |
ed001ac60fd07a11be6b5751b78b4f7d909dbd38fdab27d9668167bb66721a95
|
File details
Details for the file tree_sitter_orca-0.1.0-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: tree_sitter_orca-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 12.2 kB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17eec28cec92d10fab46b0806f3a4b3e5df71fae18e0b0a03652cacc3dd2e0cc
|
|
| MD5 |
c5ae80f0b980e84ec141d42ea718fba2
|
|
| BLAKE2b-256 |
0ac47933767e13b707366b618406edd0dcead527b14634f1b37cf0b70e75554d
|