Skip to content
This repository has been archived by the owner on May 23, 2020. It is now read-only.

GloomyGrave/CGALang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

China Great Again Lang

来自百度百科

使用方法

会BrainFuck就会CGA,下面给出对应表:

CGA BF
富强 [
民主 ]
文明 >
和谐 <
爱国 +
敬业 +++++
诚信 .
友善 ,
自由 -
平等 -----

编译方法

$ dmd -O cga src/cga.d src/main.d

运行方式

UNIX:

$ cga examples/helloworld.cga

Windows:

$ cga.exe examples/helloworld.cga

例子

敬业 敬业
富强
     文明 敬业 爱国 爱国  
     文明 敬业 敬业 
     文明 爱国 爱国 爱国 
     文明 爱国 
和谐 和谐 和谐 和谐 自由 
民主
文明 爱国 爱国 诚信
文明 爱国 诚信
敬业 爱国 爱国 诚信
诚信
爱国 爱国 爱国 诚信
文明 爱国 爱国 诚信
和谐 和谐 敬业 敬业 敬业 诚信
文明 诚信
爱国 爱国 爱国 诚信
平等 自由 诚信
平等 自由 自由 自由 诚信
文明 爱国 诚信
文明 诚信

他会输出Hello World!在屏幕上。

许可:

CGA Programming Language
Version : 0.0.1
Last Update: 2018/11/03
Author : GloomyGhost GloomyGhost@foxmail.com
License :
Copyright © 2014 TSUYUSATO Kitsune make.just.on@gmail.com
Copyright © 2018 GloomyGhost GloomyGhost@foxmail.com
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.