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.0.0.tar.gz (32.6 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.0.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for logic_asts-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fb5c4f99fd4d8968831e16db46dc61e6b0e052fa84a13cee9a8fe2f43673a9ef
MD5 68789605ca70074e7a9f592178ebce54
BLAKE2b-256 0df6034302a6748bff4678d97cdc6dd94998a02b8560a063e8b813e2c75e5f64

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for logic_asts-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e391c006236e75b4e5ca35b0e6365df4d3c27b8b6e0e7cec3c17429840653851
MD5 49eda8cb22b06e87ecd0cf1e6f886247
BLAKE2b-256 d2e46abcf3ce81915779c78270445615611f1e7630105b1444163d0fafebbe3d

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