![]() For example, tab-space-space-space performs arithmetic addition of the top two elements on the stack.Ĭode is written as an Instruction Modification Parameter (IMP) followed by the operation. All other characters are ignored and thus can be used for comments. Syntax Ĭommands are composed of sequences of spaces, tab stops and linefeeds. The idea of using whitespace characters as operators for the C++ language had been facetiously suggested five years earlier by Bjarne Stroustrup. Slashdot gave a review of this programming language on 1 April 2003. Whitespace was created by Edwin Brady and Chris Morris in 2002. The programmer is free to push arbitrary-width integers onto the stack (currently there is no implementation of floating point numbers) and can also access the heap as a permanent store for variables and data structures. The virtual machine on which the programs run has a stack and a heap. The language itself is an imperative stack-based language. A consequence of this property is that a Whitespace program can easily be contained within the whitespace characters of a program written in another language, except possibly in languages which depend on spaces for syntax validity such as Python, making the text a polyglot. Only spaces, tabs and linefeeds have meaning. Unlike most programming languages, which ignore or assign little meaning to most whitespace characters, the Whitespace interpreter ignores any non-whitespace characters. Its name is a reference to whitespace characters. It was released on 1 April 2003 ( April Fool's Day). Whitespace is an esoteric programming language developed by Edwin Brady and Chris Morris at the University of Durham (also developers of the Kaya and Idris programming languages).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |