This release is a pre-release and may not be stable for production use.
Whitespace
An interpreter written in Python for the imperative, stack-based language called Whitespace.
Installation
To install, simply use pip (or pipenv):
$ pip install whitespace
Usage
Let program.ws be any Whitespace program. To execute it, type:
$ whitespace program.ws
You can find example Whitespace programs at tests/fixtures.
For example, here’s the factorial program:
$ whitespace fact.ws
Enter a number: 40
40! = 815915283247897734345611269596115894272000000000
Development
Recommended tools:
Clone the repository and install the dependencies:
$ git clone git@github.com:dwayne/whitespace-python.git
$ cd whitespace-python
$ pipenv shell
$ pipenv install --dev
You’re now all set to begin development.
Testing
Tests are written using the built-in unit testing framework, unittest.
Run all tests.
$ python -m unittest
Run a specific test module.
$ python -m unittest tests.test_parser
Run a specific test case.
$ python -m unittest tests.test_parser.ParserTestCase.test_it_parses_push
References
Credits
Thanks to Edwin Brady and Chris Morris for designing/developing this programming language; they are also developers of the Idris programming language.
Metadata
Release files for whitespace 1.0.0b8
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 |
|---|---|---|---|---|
| whitespace-1.0.0b8.tar.gz | 9.1 kB | Without provenance | Details for whitespace-1.0.0b8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| whitespace-1.0.0b8-py3-none-any.whl | Python 3 | none | any | Details for whitespace-1.0.0b8-py3-none-any.whl |
Total release size: 19.5 kB
Release files / whitespace-1.0.0b8.tar.gz
| Download URL | whitespace-1.0.0b8.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
747026deeb65ae3badd2d63460a0e959f811dda9588a5863f7db44a0e6e23df0
|
|
BLAKE2b-256 checksum How to use checksums |
0edb4addd92b7f4b24673447073c5bd7c5fb288eed27f3e66d03609f5a498f56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
|
Release files / whitespace-1.0.0b8-py3-none-any.whl
| Download URL | whitespace-1.0.0b8-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28120de2acef077afd855e5b8d36b022ebbf5755247454a3f8fc48901631e767
|
|
BLAKE2b-256 checksum How to use checksums |
6ef1ff7bcbb627aede26cc5cd8d83a835310e297b1826279544c0ceeaa707af6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
|
Security for whitespace 1.0.0b8
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.