4

构语言的失败发布

 3 years ago
source link: https://zhuanlan.zhihu.com/p/362053885
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

构语言的失败发布

反对资本主义,反对官僚,反对帝国主义

今天如约发布构语言(也是最后一次发布)。

本意只是个玩笑,但是我感觉我像个小丑。

但是一个能用的编译器还是要有的。如下:

https://gitee.com/picasso250/gou/tree/master​gitee.com

示例程序:

包名 主体
引入 "fmt"
名字 有个人 = "神秘人"
可以 对世界说() {
    fmt.打印行("Hello", 有个人)
}
可以 主体() {
    对世界说()
}

自己编译出gouc.exe 和go.exe(并且让go.exe 处于path的优先位置),然后运行:

gouc -in a.gou -run

就可以看效果了。

ps:知乎上有很多问题如:为何没有中文语言。

首先,有很多。

其次,就算有了,也没人关注……(比如这个)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK