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:

With python

  • Install all python requirements:
  $ pip install -r requirements.txt
  • Launch program of your choice with:
  $ python -m guarded ./examples/euqclid.gua run

Installing package

  $ pip install --editable .
  $ guarded --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

gclang-0.0.1-py3-none-any.whl (21.2 kB view hashes)

Uploaded py3

Supported by

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