Git Product home page Git Product logo

whitespace-1's Introduction

Whitespace

A programming language composed entirely of whitespace.

Nope, I'm not kidding...

NOTE: I am aware that a language called Whitespace (created by Edwin Brady) with a similar concept exists already. I created this as a personal experiment and for fun, I'm not trying to copy the existing Whitespace language, and there are significant differences in syntax and how programs are actually written.

Whitespace is a programming language composed entirely of two characters; space and tab.

The number of spaces you type consecutively correspond to a value. The amount of tabs you type consecutively correspond to an action.

For a full guide of how to write a program in Whitespace, please view the specification.md file. An example "Hello world!" program is provided under helloworld.ws.

Getting Started

$ git clone https://github.com/Romejanic/Whitespace.git
$ cd Whitespace
$ java -jar Whitespace.jar helloworld.ws

You can optionally run Whitespace in a debug mode which will print each step of the program and the value of the current address in memory. To access this debug, run the program with the --log-actions flag before the file name. This will create a new file called PROGRAMFILE.actions.log (e.g. helloworld.ws.actions.log), with a list of completed actions during execution.

Build from source

On Windows: Run build.bat

On Mac/Linux: Run build.sh

This will compile the source, place the resulting class files into bin/, and then create a runnable Whitespace.jar.

whitespace-1's People

Contributors

romejanic avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.