whitespace: Whitespace, an esoteric programming language.

[ compilers-interpreters, program ] [ Propose Tags ]

Whitespace, an esoteric programming language.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.4
Dependencies haskell98, random [details]
License LicenseRef-GPL
Author Edwin Brady (e.c.brady@durham.ac.uk)
Maintainer harold@hotelling.net
Category Compilers/Interpreters
Home page https://github.com/haroldl/whitespace-nd
Uploaded by HaroldLee at 2012-11-02T06:13:59Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables wspace
Downloads 1921 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2015-05-21 [all 8 reports]

Readme for whitespace-0.4

[back to package description]

Whitespace

See the original web site for full documentation of the base language.

Local Changes

Cabal support

You can use the "cabal install" command to build and install the wspace executable.

Shuffling in Whitespace

Until now, programmers interested in using randomized algorithms in Whitespace have been required to supply some random stuff as input to their program. To solve this, I propose adding a new instruction to the Whitespace language that will shuffle the stack. This feature can then be used to implement various randomized algorithms, including a random number generator.

Command Reference and Sample Program

As a stack operation, this instruction is prefixed by the [Space] IMP. The command code is selected to allow for future expansion of Whitespace's stack operations and in homage to a musical group that my wife assures me is not disco.

Command Parameters Meaning
[Tab][Tab][Space] Randomly permute the order of all values on the stack.

There is a sample program which prints out the digits 0-9 in a random order:

  • examples/randperm.ws