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
Release history Release notifications | RSS feed
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 details)
File details
Details for the file gclang-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: gclang-0.0.1-py3-none-any.whl
- Upload date:
- Size: 21.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d142285cfa67f0f49b3c6d96bf270d0c0b74a8ac3b643b489212e545a976424e |
|
MD5 | 73cd9295605e895462a479de4c39ebc2 |
|
BLAKE2b-256 | e711cba99f440b4c3eef699f8e5117b82a7d89ea5c1931aeaffc7a75f2787eb6 |