当前位置:网站首页>Classical Chinese can be programmed???

Classical Chinese can be programmed???

2022-06-23 23:50:00 Android Guide

My quotation

Good morning! , Sao Nian , I'm Wu Xiaolong . Why , It seems that today 520, I wish all lovers in the world will become brothers and sisters , Oh yeah. . My public number 「 Rookie turns over 」 Will recommend GitHub On a fun project , A minute get An excellent open source project , Tap the value of open source , Welcome to follow me .

For my technical dregs , It's good to be able to program in a normal development language ,GitHub Some people use classical Chinese to program ,What? Classical Chinese can be programmed ?

That's right is wenyan, At present, the project has achieved Star 15.9k !

HelloWorld Example

Classical Chinese :

 I have a number . Say three . The name is 「 nail 」.
 For 「 nail 」 All over .
  I have a word. . yue 「「 It's good to ask the sky .」」. Book of .
 At such a time .

Equivalent to JavaScript:

var n = 3;
for (var i = 0; i < n; i++) {
 console.log(" It's good to ask the sky .");
}

Output :

 It's good to ask the sky .
 It's good to ask the sky .
 It's good to ask the sky .

This project syntax has variables 、 Process control 、 operation 、 Containers 、 object 、 function 、 Notes, etc. , One is also provided On-line IDE:http://wenyan-lang.lingdong.works/ide.html,IDE The menu bar on the left provides some good Demo:

The author is really a cowhide , Take my knee .

GitHub Address

https://github.com/wenyan-lang/wenyan

Guess you like

Android Frame screen effect , Get to know

This high imitation Xiaomi mall project is amazing

Git From entry to running ( Four )

On career planning

原网站

版权声明
本文为[Android Guide]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206232043468049.html