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

Uploaded Source

Built Distribution

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

tree_sitter_iml-0.27.0-cp310-abi3-macosx_11_0_arm64.whl (958.9 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: tree_sitter_iml-0.27.0.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for tree_sitter_iml-0.27.0.tar.gz
Algorithm Hash digest
SHA256 4b8008a23992095dc79309d6a624225ad51175689d6f3ce11d8727ad79f51dfb
MD5 69e5928e619fc42a83f854565bc48624
BLAKE2b-256 e4f2cbab3099ced6f279fc91ab3508ba8ed03a77a497fb1cbd6838702ef18bd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_iml-0.27.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 01cabd83cb19c53c8541aa7aaa0adca95f6eb54d629fc0946752a01023e07381
MD5 029bd67a854b0784b0791fc81f6f8769
BLAKE2b-256 f4a94c7ac9f28d26e7894b42c91ff9c470c9d40ee6f0dac67400d4924a103342

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