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-0.3.2.tar.gz (22.5 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-0.3.2-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: logic_asts-0.3.2.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.2

File hashes

Hashes for logic_asts-0.3.2.tar.gz
Algorithm Hash digest
SHA256 cfba30be2163bb38f4923d740678aff323c2ece6153621e85c6bd7a5b59c9ca8
MD5 0f39acf6d9b92b681ba9991e3f6146f3
BLAKE2b-256 01445b5ef8babdd5d294f42f2430ab98e67cce2b593e1783b33e46b362874342

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for logic_asts-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e825ab32efacc2a192e24aa32ad6ac30f4420c513ce9ba51fedf41c598bb53c9
MD5 d45be0f9168cda902ab96253ef71855e
BLAKE2b-256 82b35106029f76c9496eba84530f061b2d2b48e9095a620e0b7e766fec5e12e4

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