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
Metadata
Release files for vprolog 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vprolog-0.1.0.tar.gz | 10.3 kB | Without provenance | Details for vprolog-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vprolog-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for vprolog-0.1.0-py3-none-any.whl |
Total release size: 21.1 kB
Release files / vprolog-0.1.0.tar.gz
| Download URL | vprolog-0.1.0.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
840daf8af3f5e3d404e28faeecd4c2477d47eba8809ea9b1db6b271e7717716a
|
|
BLAKE2b-256 checksum How to use checksums |
ca3febab3ebb77e19e74cb1cf2515e228c0e45316d90e383a716f921488c5180
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / vprolog-0.1.0-py3-none-any.whl
| Download URL | vprolog-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a56f45c24a68d3f6f41b3fee206962e80fb90d75692e6a0443f518fa5486b9a
|
|
BLAKE2b-256 checksum How to use checksums |
3d6ff70eea83fd92836134351c9c6d12246ce16080bc34782df79a0de239d5d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for vprolog 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.