tree-sitter-gcode
G-code grammar for tree-sitter.
Features
- General codes (like G, axes, parameters etc.)
- Wide range of file extensions supported (see file-types)
- Both inline and end-of-line comments (some G-code flavors support both)
- Indexed axes words (as specified in ISO 6983-1)
- Checksums
- G-code expressions (specified in RS274NGC)
- Named parameters (check named paramters for LinuxCNC)
- M98 and M99 G-Code subprograms with parameter variables (check cnccookbook)
- G-code subroutines with conditionals and loops support (extended O-codes in LinuxCNC)
- Fanuc-style subprograms, conditionals and loops
Status
This parser was written using a list of references described in the References section. It should work with most cases. Due to wide range of G-code implementations, some unique features may not be supported in this grammar. However, I was trying my best to match common specifications as precise as possible.
Feel free to open an issue with a feature request or do a pull request to extend this grammar to support more features.
References
Metadata
Release files for tree-sitter-gcode 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tree_sitter_gcode-0.1.1.tar.gz | 31.4 kB | Without provenance | Details for tree_sitter_gcode-0.1.1.tar.gz |
Built distributions (wheels)
Total release size: 211.5 kB
Release files / tree_sitter_gcode-0.1.1.tar.gz
| Download URL | tree_sitter_gcode-0.1.1.tar.gz |
|---|---|
| Size | 31.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d9140ad9af7952dcbebd2dfdc56525b2d344074878e2758712d4c1767c15c02
|
|
BLAKE2b-256 checksum How to use checksums |
5858b1e50a6e0c2265aec91acc3635f19b79ba864302c1cdcf232a8228d05c05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / tree_sitter_gcode-0.1.1-cp310-abi3-win_arm64.whl
| Download URL | tree_sitter_gcode-0.1.1-cp310-abi3-win_arm64.whl |
|---|---|
| Size | 19.6 kB |
| Tags | CPython 3.10 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
5430b143609da29bc37a2d6020d9ef5166113f906b5ba4e82f68428ee8b29bc0
|
|
BLAKE2b-256 checksum How to use checksums |
2403a85433665d16550dedb066c4eadafafb0abbaa29436bedd24d3863868698
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / tree_sitter_gcode-0.1.1-cp310-abi3-win_amd64.whl
| Download URL | tree_sitter_gcode-0.1.1-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 21.1 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
1e3f6bfa33ff22340bc08ef83ebb7a0ec3ecacb57e3e56a8cf15a7721ca4727b
|
|
BLAKE2b-256 checksum How to use checksums |
46274f8f5c121b919893f7c208ee447f1f9f13ef0fb290856460159d35de3034
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / tree_sitter_gcode-0.1.1-cp310-abi3-musllinux_1_2_x86_64.whl
| Download URL | tree_sitter_gcode-0.1.1-cp310-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 32.9 kB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
6b772b8eb7c57f753f69c9107a9b63a977b12c719a073717fa636ae1feb2b38e
|
|
BLAKE2b-256 checksum How to use checksums |
4672b1930643221f9a944056b081f1aef2d1f2299a8e71f927bfdd225ac00c7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / tree_sitter_gcode-0.1.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | tree_sitter_gcode-0.1.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 33.5 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
df727e90b17d33ec954464726e7b312790123b7c46a88aad38411adb929c0fd3
|
|
BLAKE2b-256 checksum How to use checksums |
0f1ef66442e59cbb6a35b03c90e399c2a764f15dde56d760b710369be648ed57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / tree_sitter_gcode-0.1.1-cp310-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | tree_sitter_gcode-0.1.1-cp310-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 33.3 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
7865f1325b76ca0f7b30b37dd468598d6dccfd0aeccad9b688290b0c617e6065
|
|
BLAKE2b-256 checksum How to use checksums |
8e464f9760f5c233a85197956ed6cdebab07d353791c3fea008779823c0e0810
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / tree_sitter_gcode-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | tree_sitter_gcode-0.1.1-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 20.1 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
36199cb31e36a4dbf76e68a114e7966ece7568ea06a193078ec7d973618f53bb
|
|
BLAKE2b-256 checksum How to use checksums |
6d358f8f4686b11ea9370add212f4a31943816dd10a0cbf44177ffcd2786e78c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / tree_sitter_gcode-0.1.1-cp310-abi3-macosx_10_9_x86_64.whl
| Download URL | tree_sitter_gcode-0.1.1-cp310-abi3-macosx_10_9_x86_64.whl |
|---|---|
| Size | 19.5 kB |
| Tags | CPython 3.10 abi3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
fc9148abfd4f11b1c11b5ea2ae5a0bc5d3102419858157c5c6553a0d2b32234a
|
|
BLAKE2b-256 checksum How to use checksums |
5001bdd4a47b8479207a672d81a80462c136538dc26a94751e8f5626c1641a7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for tree-sitter-gcode 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.