当前位置:网站首页>Some Chinese programming languages
Some Chinese programming languages
2022-07-18 10:05:00 【Four fires】
I think this article is not a joke , Let's examine these Chinese programming languages in a serious spirit .
Easy language
Easy language It can be said that it is the leader of Chinese programming language , Have a separate compiler . Yi language is not made by superficial Sinicization of existing programming tools , Compared with other foreign languages ," Easy language " The biggest difference is completely Chinese culture , And has all independent intellectual property rights from the bottom up .
The new version of Yi language is called “ Easy language . Flying ”, Including garbage collection mechanism , It is a completely object-oriented Chinese programming language :
Open class Start class
{
Open static state start-up ()
{
Console . Output (" Hello , The world !");
}
}Compared with other Chinese programming languages , It is the most mature , At the same time, it has a complete development environment .
Learn the language
Learning language is the Chinese version C Language , It consists of a complete set of programming syntax and supporting tools , It aims to popularize computer and software programming , Popularization , Chinese culture , Improve the maintainability of the program .
Public class Hello {
Public Static No type The main function ( character string Parameters []){
System . Output . Output string and wrap (" Hello , The world !");
}
}Learning language family :
- Learn the language : chinese C Language programming system
- Xi Jiajia : chinese C++ Develop partners
- Xi Jiawa : chinese Java Programming tools
- Xi Liniu :linux Chinese programming system under the system
- Sister Xi : Learn the language interpretation version
- xi 51:51 SCM Chinese development partner
- Zhonghui :X86 Chinese compilation
- Chinese construction tools ( Chinese version of make Tools )
- ……( Voice over : Read these names , Did you throw up ?)
Bingzheng
Bingzheng is a compiler that can make people use Chinese to develop programs , The proposer is Wei Zeren . It is an attempt of Chinese programming language . C Zheng Zheng will turn the source code containing Chinese into usable gcc Compilation of [C++] Original code , And through macro definition (#define), Achieve the purpose of developing programs in Chinese . In later versions , compiler gcc And debugger gdb The returned variable name , It will also be translated into Chinese , For debugging .
empty Chess file :: Set comments ( Character *s, Integers n)
{
if (n >= Maximum number of annotations )
For (; Maximum number of annotations <= n; Maximum number of annotations ++)
Notes [ Maximum number of annotations ]=NONE;
if (s==NULL or String length (s)==0)
Return ;
if ( Notes [n]!=NONE)
Delete Notes [n];
Notes [n]= new Character [ String length (s)+1];
String copy ( Notes [n],s);
}PerlYuYan
PerlYuYan It is a development program that can make people use Chinese classical Chinese Perl Programmed Perl module , By Tang Fengyu 2002 Published in January 2004 , It took only two hours to complete the implementation . It is an attempt of Chinese programming language . The author makes use of the characteristics of Chinese , Change many instructions into one Chinese character , Thus, it causes the feeling of classical Chinese grammar .
# The Sieve of Eratosthenes - Eratosfen sieve method
use Lingua::Sinica::PerlYuYan;
Raise money and be strict . The well dries up without hindrance
. India says the highest Again, it's true .
. Cut off my pure wind Fu Xiaoru Dahe .
. Learn to give my position And two to pure wind .
. When the beginning paragraph is given Add positions together .
. The position begins Is this miscellaneous segment .
. The final position is sealed The right path is the second target .
. Air transmission connection point The column ends with Tailai .Chinese python
Chinese python It's a set of bases Python Chinese programming language of instant compilation language . Except reserved words , Variable names can be used outside Chinese , Many operations of built-in data types can be performed in Chinese .
#!/usr/local/bin/cpython
answer = Read in (' Do you think Chinese programming language is valuable ? ( Yes / No )')
Such as answer == ' Yes ':
Write ' ok , Let's work together !'
Otherwise answer == ' No ':
Write ' ok , Chinese has no value as a programming language .'
Otherwise :
Write ' Please think it over carefully before answering .'Zhou Python
Zhou Python , also called zhpy, It's a light weight , And Python Language compatible Chinese Python Language . Allow users to make Zhou mang uses pure Chinese sentences ( Traditional or simplified ) To program . At present, it is mainly applicable to teaching .
#!/usr/bin/env zhpy
# File name :while,py
Numbers = 23
function = really
When function :
guess = Integers ( Input (' Enter a number : '))
If guess == Numbers :
Print out ' Congratulations , You guessed it .'
function = false # This will end the loop statement
Supposing guess < Numbers :
Print out ' In the wrong , The number is a little bigger .'
otherwise :
Print out ' In the wrong , The number is a little smaller .'
otherwise :
Print out ' End of loop statement '
Print out ' end 'O Language
O Language is a Chinese computer language ( Or suit ), Include O assembly language 、O Intermediate language and O High level language, etc , Among them, window design 、 Interface description language 、O Intermediate languages have been well integrated .
O Intermediate language can be said to be the abstraction of assembly language , It is the same as assembly language , Use single sentence grammar , In addition to basic conditional sentences and function calls , A basic instruction corresponds to a statement , therefore , It is better than C Language is grammatically lower . The purpose of this design is to maintain enough flexibility at the bottom , Make it easier for front-end code to map to intermediate languages .C Language is undoubtedly very powerful ,Pascal The language is also very powerful , But it's hard for you to convert the two codes to each other , If you use an intermediate language as the intermediate layer , Can be compatible with both syntax .
. Include text <* window 32.omh>
entrance The main function ()
{
MessageBox(0,&"Hello,World!",&"",0);
ExitProcess(0);
}Chinese bacon
Chinese bacon is Basic Localized Chinese version of the language ( In the early 1980s , Unbelievable , But , The first Chinese programming language has existed since the 1970s , Platform is DOS).
10 Divination =0
20 Enter into water , fire
30 From Japan = water To fire
40 Divination = Divination + Logarithm ( Japan )
50 Next Japan
60 print Divination Translate :
10 Y=0
20 INPUT E, F
30 FOR A = E TO F
40 Y = Y + LOG (A)
50 NEXT A
60 PRINT YActually , chinese perl、 chinese Pascal、 chinese Cobol、 chinese LOGO And Chinese Basic These obvious localized languages are available .
I think Chinese programming languages can be divided into two kinds according to the depth of Chinese :
- Localize other programming languages . For example, as described above “ Bingzheng ”( Digression : Why call “ Bingzheng ” Well ? Because the original language is called “C++” Well ……).
- Chinese kernel language . Include “ Easy language ” etc. . This kind of language can be said to be a “ Real language ”, Otherwise, it can only be said to be language + It's just a Chinese bag ……
Last , Take a look at a lighter , Hey .
Grass Mud Horse language
Grass Mud Horse language It is the first one with independent intellectual property rights in malegobi , A programming language based on the tenacious Grass Mud Horses living on the malegobi . The grammar of Cao Ni Ma language is vivid and rich , The content is healthy and lively , It is suitable for all ages , Programming language for everyone . Its appearance makes up for a gap in the international programming language world .
Cao Ni Ma language is advanced JOT(Just Out of Time) Build engine , And run in Java virtual machine , The running speed is greatly reduced at the same time , Various advanced technologies inside and outside the Gobi are also used , Make the Grass Mud Horse language is not very reliable . Implementation , Cao Ni Ma language is a foreign language of the same type “Whitespace” Adaptation ( Replace keyword ) A brand new programming language , Use “ fuck you ” Different combinations of realize different functions , Only these keywords :“ The grass ”、“ mud ”、“ Horse ” and “ river crab ”, All other characters are treated as comments .
Grass grass mud horse Horse grass grass mud horse Grass horse grass Mud horse grass mud Grass grass mud grass horse Mud horse grass Grass grass mud horse Muddy grass Grass horse grass Grass grass mud grass mud horse Mud, grass, mud Horse mud grass grass grass grass mud horse Horse grass horse grass mud grass grass mud horse Horse grass grass mud grass mud horse Grass horse Ma Ma Ma That's one from 1 To 10 To output these ten numbers in a loop of .
in addition , and “ fuck you ” There is also this kind of Chinese cultural markup language to reach an understanding memo ( So strictly speaking, it is not a programming language )——
CHTML
CHTML It's an international Internet Organization W3C Hypertext markup language 4.0 An implementation of (dtd Here it is ). Under the guidance of the brilliant thought of Chinese programming , The product of the combination of Internet universal agreement and China's national conditions . His name in Chinese is “ Chinese version how to make love ”(Chinese How To Make Love). Just like Chinese programming , Labels that used to be in English can now be all in Chinese ; besides , Two additional tags are also extended , namely < Anti Kung Fu network > and < Hook >. in addition to , The agreement and existing HTML Standards are fully compatible .
< Hook > It is the product of combining with China's national conditions . Sometimes we need to create a poll with only one answer , This tag can be used to discard user votes in time , Save server resources , Demonstrate the superiority of socialism .
< Anti Kung Fu network > It's famous CAPTCHA Browser implementation of the system . So all the elements in this tag become CAPTCHA. So that people can read smoothly , And machines can't . This tag is harmless to people and search engines , But it can leap over the Great Wall transparently . The technical details are still under discussion .
< Provincial and ministerial titles >
Guizhou Provincial Information Office held a press conference to announce
< Anti Kung Fu network >
So-and-so
</ Anti Kung Fu network >
The truth of the incident
</ Provincial and ministerial titles >
< County level Title >
2008-07-01 19:56:38 source , xinhua
</ County level Title >
< list >
Core tips :7 month 1 On Tuesday night 19 spot 40 branch ,XX The press office held a press conference , published
< Anti Kung Fu network >
So-and-so
</ Anti Kung Fu network >
The truth of the incident .
< Anti Kung Fu network >
So-and-so
</ Anti Kung Fu network >
The social order of the county was basically restored .
</ list >from here You can find some official examples .
The articles are all original without special indication , It shall not be used for any commercial purpose without permission , Please keep the integrity of reprint and indicate the source link 《 Four fire's nagging 》
×Scan to share with WeChat
边栏推荐
- [Internet of things] basic knowledge of WiFi (I) [see the comment area to get information]
- JUC joint contracting - cyclicbarrier
- 基于多码GAN先验的图像处理
- [live review] openharmony knowledge empowerment phase 6 lesson 3 - control panel function implementation of openharmony smart home project
- CAN Communication (1) - CAN Communication Physical Layer
- Development history of digital twin power grid
- HCIP(第一天)(HCIA知识复习)
- VLAN与三层交换机
- 如何发布自己的npm包
- JUC并发包—Semaphore
猜你喜欢
随机推荐
盲目用多线程反而容易导致 OOM
link引用和@import引用的用法和区别
AWS Config
How to publish your own NPM package
Mysql主从复制原理
Rust webserver服务
MySQL的主从复制原理是什么
《构建之法》笔记---第四章 两人合作
金太阳国信证券安全吗?可以在上面开户吗?
Mysql基础学习Day05
CommonJS
secureCRT打印增加时间戳
js小效果之根据对应项目名跳转
2022-07-15 第五小组 孔海波 学习笔记
包装类型
对象转换的问题
笔试强训第15天
js如何实现列表自动滚动循环播放
Quick sampler of logic Pro tutorial (very detailed)
学习使用亚马逊国际获得AMAZON商品详情 API








