vsi
very simple interpreter written in pure python without any third party dependencies.
Installation
you will need python interpreter and pip package manager after that run this command
$ pip install vsi
note: for linux and mac users you may want to prefix the command with sudo
Quick Start
# this is a comment
# variables
x := 1;
y := x + 2;
# printing
print x;
print y;
# if statements
if y > x then
z := y;
# optional else
else
z := x;
done
# while statemnt
while x < 5 do
x := x + 1;
print x;
done
save this to hello.vsi file and then
$ vsi hello.vsi
output
1
3
2
3
4
5
see more examples at examples/ folder
Is it tested
yes, follow the following steps:
$ # first clone the repository
$ git clone https://github.com/afaki077/vsi.git
$ # change directory to the clone repository
$ cd vsi
$ # install required packages for testing
$ pip install -r test-requirements.txt
$ # let's run tests
$ py.test
LICENSE
MIT
see LICENSE file for more information.
Metadata
Release files for vsi 0.1.1
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 |
|---|---|---|---|---|
| vsi-0.1.1.tar.gz | 7.6 kB | Without provenance | Details for vsi-0.1.1.tar.gz |
Release files / vsi-0.1.1.tar.gz
| Download URL | vsi-0.1.1.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94ba0a167969e57839348a69bc8bafad64fdbc79c4d77a0cbc41960dc08d9871
|
|
BLAKE2b-256 checksum How to use checksums |
798167363bb1dbbc8ad9086352bc2cd8d46de477a9db7a47fe5b46ce2e07c085
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for vsi 0.1.1
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.