VProlog
An implementation of a subset of the Prolog programming language made for fun. The language is parsed using Lark.
Installation
pip install vprolog
Usage
To run vprolog, use
vprolog [<input_file>]
where the argument is an optional input file containing facts and rules.
Example input files can be found in examples.
Example
To run the examples, just clone the repository first:
git clone https://github.com/Vekteur/vprolog.git
cd vprolog/examples/
$ vprolog example1.pl
?- cousin(bernard, X).
X = pierre
X = veronique
$ vprolog example5.pl
?- inverse([1, 2, 3], L).
L = [3, 2, 1]
$ vprolog example7.pl
?- gcd2(8, 12, X).
X = 4
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vprolog-0.1.0.tar.gz
(10.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
vprolog-0.1.0-py3-none-any.whl
(10.8 kB
view details)
File details
Details for the file vprolog-0.1.0.tar.gz.
File metadata
- Download URL: vprolog-0.1.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
840daf8af3f5e3d404e28faeecd4c2477d47eba8809ea9b1db6b271e7717716a
|
|
| MD5 |
ad9ae640bc8bf9055cd2d6007293d569
|
|
| BLAKE2b-256 |
ca3febab3ebb77e19e74cb1cf2515e228c0e45316d90e383a716f921488c5180
|
File details
Details for the file vprolog-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vprolog-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a56f45c24a68d3f6f41b3fee206962e80fb90d75692e6a0443f518fa5486b9a
|
|
| MD5 |
1bbab5d6519cad64f24bdd19acc86ba8
|
|
| BLAKE2b-256 |
3d6ff70eea83fd92836134351c9c6d12246ce16080bc34782df79a0de239d5d5
|