encyclopegia.org

Whitespace (programming language)

with syntax highlighting Whitespace is an esoteric programming language with syntax where only whitespace characters (space, tab and newline) have meaning contrasting typical languages that largely ignore whitespace characters.[src] As a consequence of its syntax, Whitespace source code can be contained within the whitespace of code written in a language that ignores whitespace making the text a polyglot.[src] Whitespace is an imperative, stack-based language.[src] The programmer can push arbitrary-width integer values onto a stack and access a heap to store data.[src] An interpreter, along with its Haskell source code, is provided by the Whitespace creators.[src]

with syntax highlighting Whitespace is an esoteric programming language with syntax where only whitespace characters (space, tab and newline) have meaning contrasting typical languages that largely ignore whitespace characters.[src] As a consequence of its syntax, Whitespace source code can be contained within the whitespace of code written in a language that ignores whitespace making the text a polyglot.[src] Whitespace is an imperative, stack-based language.[src] The programmer can push arbitrary-width integer values onto a stack and access a heap to store data.[src] An interpreter, along with its Haskell source code, is provided by the Whitespace creators.[src] ==Sample code== The following source code is for a Whitespace "Hello, world!" program.[src] For clarity, it is annotated with S , T and L before each space , tab , and linefeed .[src] S S S T 	 S S T 	 S S S L:Push_+1001000=72='H'_onto_the_stack
T 	 L
S S :Output_'H';_S S S T 	 T 	 S S T 	 S T 	 L:Push_+1100101=101='e'_onto_the_stack
T 	 L
S S :Output_'e';_S S S T 	 T 	 S T 	 T 	 S S L:+1101100=108='l'
T 	 L
S S S S S T 	 T 	 S T 	 T 	 S S L:+1101100=108='l'
T 	 L
S S S S S T 	 T 	 S T 	 T 	 T 	 T 	 L:+1101111=111='o'
T 	 L
S S S S S T 	 S T 	 T 	 S S L:+101100=44=','
T 	 L
S S S S S T 	 S S S S S L:+100000=32=Space
T 	 L
S S S S S T 	 T 	 T 	 S T 	 T 	 T 	 L:+1110111=119='w'
T 	 L
S S S S S T 	 T 	 S T 	 T 	 T 	 T 	 L:+1101111=111='o'
T 	 L
S S S S S T 	 T 	 T 	 S S T 	 S L:+1110010=114='r'
T 	 L
S S S S S T 	 T 	 S T 	 T 	 S S L:+1101100=108='l'
T 	 L
S S S S S T 	 T 	 S S T 	 S S L=+1100100=100='d'
T 	 L
S S S S S T 	 S S S S T 	 L:+100001=33='!'
T 	 L
S S :Output_'!';_L
L
L:End_the_program
 When Whitespace source code is displayed in some browsers, the horizontal spacing produced by a tab character is not fixed, but depends on its location in the text relative to the next horizontal tab stop.[src] Depending on the software, tab characters may also get replaced by the corresponding variable number of space characters.[src] ==References== ==External links== Release announcement on Slashdot The Whitespace Corpus A collection of interpreters, compilers, and programs for Whitespace Collection of Whitespace interpreters in various script languages Whitespace.NET compiler - a compiler of Whitespace programs to .NET bytecode Acme::Bleach A Perl module that rewrites the body of your module to a whitespace-only encoding ("for really clean programs").[src]

15 sentences · 15 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Whitespace (programming language)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/whitespace-programming-language. Accessed 27 November 2026.

Chicago

"Whitespace (programming language)." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/whitespace-programming-language.

APA

encyclopegia.org. (2026). Whitespace (programming language). Retrieved November 27, 2026, from https://encyclopegia.org/wiki/whitespace-programming-language

Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

official language

stub · references available

pan-Slavic language

stub · references available

Hawaiʻi Sign Language

stub · references available

Taiwanese Sign Language

stub · references available

Category:Programming languages

stub · references available

International Mother Language Day

stub · references available

polysynthetic language

stub · references available

Category:Films by country or language

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1377816779 · 0.5 · snapshot enwiki-001377816779

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.