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.4.0.tar.gz (27.2 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.4.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for logic_asts-0.4.0.tar.gz
Algorithm Hash digest
SHA256 21c2aa6da6d5bf2680ed90869d2f354f9c547e86898f9f6e7903727e026b51af
MD5 7da773b8f7242943ac58ad28b3bc2a48
BLAKE2b-256 a7586a370e2d02cde9e4c374695386503a7685ec302b13d3e274d886e86394df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: logic_asts-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.16

File hashes

Hashes for logic_asts-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82179afd4083a8a1d9eda4b8587d70ac5a5e17e9cbabb0b54309ef1494f34bdf
MD5 61d9f5a884b44d0a3e27e427086047a4
BLAKE2b-256 f9f74d6bbd2c8508abb0150c1e9b2b7bb07a3126066d849d4131a48342fd3125

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