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.0.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.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for logic_asts-1.1.0.tar.gz
Algorithm Hash digest
SHA256 558061548bcde8e7e8eeab73f1c8eebb0096e2efe2259b6bb7972e3871a68fff
MD5 8847a80a5e3cdc893a741a61b7b0b438
BLAKE2b-256 d4e6603349d75a092d38286869c3c4ed25f3a73d7224ed233b72dd4e09ffac06

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for logic_asts-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33816878e1603dcfee34f82d7e08c8f9587520da692aa20bf3d7ede17edda744
MD5 76fb1dda21955bd0fa87a611b46f2a94
BLAKE2b-256 fd1ba156221e674ebe34ae63466f19e413538611ea6d8fe6c304da91e7f0c95e

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