ChuckFoo / Whitespace

An interpretter for Edwin Brady's and Chris Morris's Whitespace esoteric programming language. Written in Python3.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Whitespace

An interpretter for Edwin Brady's and Chris Morris's Whitespace esoteric programming language. Also included is a utility for converting easy-to-read English commands into Whitespace code, for ease of coding. :)

Written in Python3.

whitespace.py Usage

whitespace.py - execute a program in the Whitespace programming language

usage: whitespace.py [--debug | --describe] filename
usage: whitespace.py [--debug | --describe] -
usage: whitespace.py [--debug | --describe] --test
usage: whitespace.py --help

Options:
  filename                An input file containing Whitespace code.
  -                       Get the Whitespace source from STDIN (overrides filename)
  --test                  Runs unit tests (overrides filename and -)
  --debug                 Turns on verbose debugging
  --describe              Describes the given Whitespace code.  Does not execute the program.
  --help                  Prints this help info

mkws.py Usage

mkws.py - convert an easy-to-read program into Whitespace code.

usage: mkws.py - | filename

Options:
  filename                An input file containing readable source code.
  -                       Get the source code from STDIN (overrides filename)
  --help                  Prints this help info

Test Programs

I've included several test programs that I found on the internet. Some work, some don't. As far as I can tell, this is what they are supposed to do.

  • cat.ws - Silently prompts user for input, and simply repeats what the user typed
  • count10.ws - Prints the numbers from 1 to 10
  • greet.ws - Asks user for their name and prints it
  • hworld.ws - Hello world program
  • truth.ws - Silently prompts user for input. If 0, it prints 0 and exits. If not zero, prints infinite 1's.

About

An interpretter for Edwin Brady's and Chris Morris's Whitespace esoteric programming language. Written in Python3.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%