Skip to main content

IML (Imandra Modeling Language) grammar for tree-sitter

Project description

tree-sitter-iml

This module provides IML (Imandra Modeling Language) grammars for the [tree-sitter][] parsing library. It's based on the tree-sitter-ocaml grammar.

Installation

pip install tree-sitter-iml

You will probably also need the [tree-sitter binding][tree-sitter binding].

pip install tree-sitter

Usage

Load the grammar as a Language object:

import tree_sitter_iml
from tree_sitter import Language, Parser

language_iml = Language(tree_sitter_iml.language_iml())

Create a Parser and configure it to use the language:

parser = Parser(language_iml)

Parse some source code:

tree = parser.parse(iml_code)

Use language_iml() for IML files, language_ocaml() for OCaml files, language_ocaml_interface() to parse interface files (with .mli extension), and language_ocaml_type() to parse type signatures.

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_iml-0.27.1.tar.gz (2.3 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tree_sitter_iml-0.27.1-cp310-abi3-win_arm64.whl (889.6 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_iml-0.27.1-cp310-abi3-win_amd64.whl (898.5 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_iml-0.27.1-cp310-abi3-musllinux_1_2_x86_64.whl (956.4 kB view details)

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

tree_sitter_iml-0.27.1-cp310-abi3-musllinux_1_2_aarch64.whl (956.1 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_iml-0.27.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (957.7 kB view details)

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

tree_sitter_iml-0.27.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (958.1 kB view details)

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

tree_sitter_iml-0.27.1-cp310-abi3-macosx_11_0_arm64.whl (959.5 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_iml-0.27.1-cp310-abi3-macosx_10_9_x86_64.whl (895.0 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

Details for the file tree_sitter_iml-0.27.1.tar.gz.

File metadata

  • Download URL: tree_sitter_iml-0.27.1.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tree_sitter_iml-0.27.1.tar.gz
Algorithm Hash digest
SHA256 87b7fa5e1022788098b1f1eb427f2ad0ed5f925274213b8560d79c661500896b
MD5 704d77a415c3dc13778a92f136ba1c0b
BLAKE2b-256 2280c8dfad790c5ccacaa4286c4749d5e78e8b4fd2cf26674d9c7edd352831d0

See more details on using hashes here.

File details

Details for the file tree_sitter_iml-0.27.1-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_iml-0.27.1-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 340d8461dbe87f9bd69e23e60627efb686e3b1094d49665e1c9e2362067c67b0
MD5 3a9d92a8fe67b0587a014ebc01e6a2f7
BLAKE2b-256 3bca4dbeeed1ea0c11a75a458b91d901acbf56f8f4b0ed45ee08821b2921e48f

See more details on using hashes here.

File details

Details for the file tree_sitter_iml-0.27.1-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_iml-0.27.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 60af92760e53f8788012e69caaedb2a09a1e435ee046d5a03797f0294f585cc9
MD5 0bf68a054582cea1af7831f2e7c937d3
BLAKE2b-256 8f786a7873196868f33740d54adcc8fcb2a227697e2f03a2a472c0dcaba42b57

See more details on using hashes here.

File details

Details for the file tree_sitter_iml-0.27.1-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_iml-0.27.1-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4df6b68798777e39b4c47d53aa1c663022839774f8af51729bd9492ce3be280d
MD5 61370f1944afaf02c083bcf77e5cefbc
BLAKE2b-256 d4ff83e6c4921c7d76180edc76abaa8f00c555795c2751bdad634ba8b63bbc94

See more details on using hashes here.

File details

Details for the file tree_sitter_iml-0.27.1-cp310-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_iml-0.27.1-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d23d9de0af31553497ab9e75e21544797674595e46f15cbf5907b148e1953331
MD5 f1275d50b64a28022d681fff9294a749
BLAKE2b-256 949491c3f447ce4699e860b333d0ce383f170a50c600e3f98dfd03e5eaa6bfdc

See more details on using hashes here.

File details

Details for the file tree_sitter_iml-0.27.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_iml-0.27.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0149538f7c01d8f4c964b03e33e44ca77145efa413c2a15336d42e19c5e69fed
MD5 7100bc5519df54fa9b71a76e897c5505
BLAKE2b-256 ac8fb70fd9a0ddc7f6ff434beb78a90e238fd62b2a62d99b8cfc54db5c3ed65c

See more details on using hashes here.

File details

Details for the file tree_sitter_iml-0.27.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_iml-0.27.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a36b551681685843fa125a1631a1309b4d7804594030e7a55b93a62d30893fda
MD5 49581bc72aaa49f7c3ba222ee7fc1262
BLAKE2b-256 7cd032daef3a34d8b9c695ae4fb96d944b3593772ac7c267fd2877b778a6ca60

See more details on using hashes here.

File details

Details for the file tree_sitter_iml-0.27.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_iml-0.27.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 06ed65432ac104e255539efd54470bf9728cc3470e71e707d292f9508da0b19f
MD5 5c14150bafc5b7d3bfed35adef266d40
BLAKE2b-256 11981920627d21c575134b406a8a9c6f48d4d79147bbad646241185f33848dc9

See more details on using hashes here.

File details

Details for the file tree_sitter_iml-0.27.1-cp310-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_iml-0.27.1-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 878f734a06a895cf889bf8920568c146efce8e9071e963dfedc0a879bc1f3890
MD5 5e3e7c3ab23f7f56b5fe754a1125e8c4
BLAKE2b-256 ffb28b17d8e84c673f674d78e9950181c817db62518a1da87dec484c9f16ed6e

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