Dustin Ingram's Very Special Programming Language.
Project description
divspl (Dustin Ingram’s Very Special Programming Language)
An implementation of a FizzBuzz DSL using rply.
Description
divspl is an interpreter for the DIVSPL DSL (Dustin Ingram’s Very Special Programming Language Domain Specific Language), which is used for implementing FizzBuzz-like programs.
Installation
$ pip install divspl
Or for local development:
$ virtualenv env $ source env/bin/activate $ python setup.py install
Usage
$ divspl [filename]
Where:
filename A *.divspl filename to execute
Example
Use the interpreter to execute valid DIVSPL code:
$ divspl fizzbuzz.divspl
Or use it as a shebang:
#!env/bin/divspl 1...15 fizz=3 buzz=5
Then:
$ ./fizzbuzz.divspl
Compiling with RPython
divspl is compatible with RPython. To compile:
$ pip install rply $ mkdir -p pypy $ wget https://bitbucket.org/pypy/pypy/get/default.tar.bz2 $ tar -xvvf default.tar.bz2 -C pypy --strip-components=1 $ mkdir -p bin $ python pypy/rpython/bin/rpython divspl/target.py --output=bin/divspl
You now have a compiled divspl binary in ./bin, which you can use as follows:
$ bin/divspl fizzbuzz.divspl
Contact
- On PyPI:
- Souce:
- Issues:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
divspl-0.0.3.1.tar.gz
(3.1 kB
view details)
File details
Details for the file divspl-0.0.3.1.tar.gz
.
File metadata
- Download URL: divspl-0.0.3.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb99a8757699a0e3af2139c7668ac24302398ff03da1be42ebf83ceaf0a452c6 |
|
MD5 | 4f1cf960a53b69973b009c69158abf59 |
|
BLAKE2b-256 | 446865923a5949d192061279b44c8916b2f39109567ae3a5312e3e84c0625942 |