I tried to read and understand the Chinese language programming language `` word word ''



Programming languages are mostly written in English or a series of numbers, and if you don't have knowledge, you don't know what is written. The Chinese language programming language ' Wangu ' is a slightly different programming language that allows you to write programs in the writing style used in ancient China.

wenyan-lang.lingdong.works/

http://wenyan-lang.lingdong.works/

An online editor is prepared for the wording, and it is possible to write and execute a simple code from the following URL.

wenyan-lang.lingdong.works/ide.html
http://wenyan-lang.lingdong.works/ide.html

Some sample code is provided in the online editor. As a test, let's check the code that outputs text such as 'Hello, World', which is often used in programming language tutorials. First select pull-down.



If you select 'helloworld' ...



A code that outputs the text 'Kantenchi Koi' instead of 'Hello, World' was displayed. Programming languages have a strong image of half-width numbers and English enumerations, so the wording with full-width kanji is not very visible in programming languages. There is no such thing as a “re-spot”, but the contents of the code are transmitted somehow from the meaning of kanji.



The wording is compiled into JavaScript code by the compiler. When the above code is converted to JavaScript, it looks like the following image.



Since the contents of the sample code can be edited, I changed it to a code that outputs 'GIGAZINE'. Click Run to run the code.



The result was output.



In addition, a little complicated sample code was prepared, such as a program example in which

quick sort , a kind of sorting algorithm, was written in words. For example, the following is 'Filling' Less than three. Less than twenty. Eighth. 35. Less than seven hundred. 'In other words, it is a program that sorts the numbers 5, 3, 20, 8, 35, and 700 in ascending order.



It is like this when converted to JavaScript.



The output results are also sorted in ascending order.



You can check the grammar of the wording by accessing the

official website and clicking “REFERENCE”.



The following is a declaration of a variable. For example, “Yuichi Ichigo. 'Means' Declare one variable. Substitute the number 3. Make a variable named A '. Compared to the JavaScript code written on the right, it is quite long, but because it is written like a Japanese programming language ``

Nadeshiko '', the meaning of the code is transmitted even if you are not familiar with programming The



You can also download the wording from

Github for those who want to write a program with wording! There was also an extension for Visual Studio Code and a program to output the written code on manuscript paper .

in Review,   Software,   Web Application, Posted by darkhorse_log