Skip to main content

Guarded command language interpreter

Project description

Guarded

Guarded is the interpreter of Dijkstra's guarded command language, written in python with ANTLR4 generator.

Example of program in this language:

a := 45;
b := 15;

do a != b ->
    if a > b -> a := a - b
    |  a < b -> b := b - a
    fi
od

Quick start:

To start using interpreter, follow these steps:

  • Install gclang:
  $ pip install gclang
  • Launch program of your choice with:
  $ gclang ./examples/euqclid.gua run
  $ gclang ./examples/euqclid.gua derive

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

gclang-0.0.3.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

gclang-0.0.3-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file gclang-0.0.3.tar.gz.

File metadata

  • Download URL: gclang-0.0.3.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for gclang-0.0.3.tar.gz
Algorithm Hash digest
SHA256 052399646075fddfa1c2247f262564486c4049c5d1bd1633f1ebaec993572a01
MD5 a6c4e6335b73e59ef317b17b18260c86
BLAKE2b-256 8596b17cd3d8a03300def10ec963aad38c255b41bbc59103fb1e22d29b86b651

See more details on using hashes here.

File details

Details for the file gclang-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: gclang-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for gclang-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 da9494b9c684d19a13c2ebe37145a0f02eb1db6f2b1cad5c0b21825f17faf0c4
MD5 8dce125c3f049ddc708fddb2bd0bc421
BLAKE2b-256 4f92ff00e065defba2262faea261187ba7f5852c8c50cd7f45b6712a49800385

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page