Programming language with no code: Folders

Source: Internet
Author: User

Before we introduced the "whitespace" programming language, this is a very wonderful programming language, in the "whitespace" programming language, any nonblank characters are ignored, only spaces, tab and line breaks are considered to be valid semantic characters. In other words, you can hide code written in the "whitespace" programming language in other text, code, and have the effect of stealth code.

And today to say this language is a wonderful thing, it is called Folders, as the name suggests, this language has no code, there is no code files, the language of the code is the operating system directory structure.

In fact, the file system directory structure is very similar to the normal programming language process structure, it is like a variety of syntax trees, in the "Folders" programming language, the structure of the code is this, code commands through the directory structure and the names of the subdirectories they contain constitute.

For example, here is a "Hello,world" program:

How it works.

The outermost directory is the name of the program, "Hello World". The directory is read in directory order, and the first level subdirectory of this program is "Setup". "Setup" is a nickname for the Print command; The following table describes the semantics of various name representations, which are distinguished by the most common directory names in Windows systems, such as program files.

Next, there are a number of "IMG" directories in the Directory, "(2)," "(3)," and "the numbers are negligible, and they are used to differentiate multiple identical directories under the same directory. Characters such as "–copy" are also negligible (these characters are automatically joined by Windows when copying directories). The number preceded by the directory name is the programmer used to control the process. Here's a sample:

New Folder (2)
new folder-copy
new Folder-copy (2)
if
if
if-copy (1)
etc.

String "Hello, world!" is divided into four paragraphs, which will make the semantics look clearer and more readable. "%20" is the meaning of a blank character.

"Folders" is a vocabulary-oriented programming system, which is an important difference from most other logic-oriented programming systems. There are a variety of files available in the "Folders" directory, but these files are negligible.

The following is a "bottles of Beer" program written in the "Folders" programming language. "Bottles of Beer" is often used to express the simplest examples of code that uses loops and variables, note the following special treatment for spaces and commas:

Currently, the "Folders" programming language only supports Windows platforms. Its code parser is open source and you can find it on the GitHub. Https://github.com/rottytooth/Folders

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.