Skip to main content

Guarded command language interpreter

Project description


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

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 hashes)

Uploaded source

Built Distribution

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

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page