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.2.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

gclang-0.0.2-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gclang-0.0.2.tar.gz
  • Upload date:
  • Size: 17.7 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.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for gclang-0.0.2.tar.gz
Algorithm Hash digest
SHA256 40dd19ee3488f75671afc103f19a2a31e00d508229a58f9d502d7b4b2b0b4f27
MD5 5d5e602d44673a11d451df4121a8e153
BLAKE2b-256 3b51370f64c43ca3f3cea875750228cd551a1ee599bf5a0250e36c81b90af947

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gclang-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 21.1 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.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for gclang-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bd8230c47e9319de0ffc5344243ee20613051fba8907a7560659848bc62db04d
MD5 bda114ab7c33591a7856d28cfbb20424
BLAKE2b-256 947c61cf80503197632b880602586861e0d282997cc27baeb964011ee21a0a32

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