Skip to main content

Grammars and parsers for various logic

Project description

Abstract syntax trees for logical expressions

A collection of grammars, parsers, and abstract syntax trees in Python for various logics. The goal of this package is to serve as a common utility for academics/developers to build their tools on, without having to create a new parser each time they make a library.

Currently supported logics are:

  • base: the basic Boolean propositional logic.
  • ltl: Linear temporal logic
  • strel: Spatio-temporal reach escape logic

Usage

Simply install the library, either as a git dependency or (once it is available) through PyPI. Then, the library can be used as:

import logic_asts

expr = logic_asts.parse_expr(expr_string, syntax="base"|"ltl"|"strel") # remember to pick the syntax

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

logic_asts-1.1.1.tar.gz (33.0 kB view details)

Uploaded Source

Built Distribution

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

logic_asts-1.1.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file logic_asts-1.1.1.tar.gz.

File metadata

  • Download URL: logic_asts-1.1.1.tar.gz
  • Upload date:
  • Size: 33.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for logic_asts-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4b10f62b63a125be27cd424660941bfc9b526c8581bb302a05a669ae6d15fc0a
MD5 f4a232471377a24364113a932fdb8be4
BLAKE2b-256 1c7951d102d597d31df6d0f3736bfd0c9b3866182764d4e1382bb894d6ac44e5

See more details on using hashes here.

File details

Details for the file logic_asts-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: logic_asts-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for logic_asts-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f5f9837fe539b15e74150e436153a64c8a803f1b5249ba8adbf7a229660603b
MD5 3ddfb3c220a46a1c5e58699aa285847a
BLAKE2b-256 69f27938d311d160e7d9f7d9e2bcdfa29f0eeb36dedbcadf0fb000f10c9bde3e

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