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.1.tar.gz (22.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.3.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for logic_asts-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c77eaaaf2fa0f0884b74a3fc704f4129408b3a9eabca6d9f9aea8cdb775e24ea
MD5 118ab8f08b44d9ad94709d1b7ab5b440
BLAKE2b-256 85c725eb1c97b66fa9ba065cd44598c206b608077a6d031352cb8c9a3e3a7524

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for logic_asts-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c93fa2b39a7b3c83c0a3955a8e28d14b5fc43f53a9870d514cc38ff8d34d9d5f
MD5 63ac2309673663979b6a6f6fd871616f
BLAKE2b-256 f732ff982dd2eaebc698d5871d424a61ae7dc825908f2036a4b8cbfdcf323fcc

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