New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
把长者语言写进电脑 #1
Comments
@ppwwyyxx 我见过这个,但是感觉这个姿势水平不够,还需要多学习个 |
不需要 |
a 也有责任吧: |
a国那个b: |
@Z-Shang 不如就用“那个”表示 . 好了……什么也不说这个已收录,excited |
@zshbleaker 中国已经有句古话了,得想个别的语义 |
我不知道可以用中文写程序,第一次见。 |
蛤蛤 |
建议 Regular Grammer 走起来 |
等价于
|
这个语义上略牵强了…… |
想过 match 不知道怎么表达好 |
搞成 |
我好像本来想写的就是这个。脑子短路了。 发件人: Qi Xiao notifications@github.com 搞成 try/finally 的话语义就好不少了 ― |
基本法-->父类 |
应该是 Object 这样的元基类 |
当时我就念了两句诗 } |
|
加一秒 = ++ |
None 也可以是闷声发大财/无可奉告 曰..曰 |
def 或者 function 叫钦定 |
break叫啥比较好 |
怎么实现呢?语法倒是很不错,不过宏定义怕是解决不了了,要写个语法解析器吗… |
@HAOGRE break可以叫请喝茶 |
"""
def 月莫
puts '蛤'
$stderr.puts ':frog:'
exit
end
"""
中国有句古话 java.lang.System 叫 记者
新闻 Excited
记者.exit 0
吼啊
新闻 Angry
记者.exit 1
吼啊
新闻 月莫
说 "蛤"
愤怒 地说 ":frog:"
Excited! # vcall a function fn_name!
吼了
会议 Main
乃无 西方整数 蛤数 钦定为 1
资资不资资 蛤莱士
新闻 main(语录多了 args)
钦定 蛤莱士 为 吼
从 0 跑到 蛤数
说 "+1s"
吼蛙
跑遍 args 中的 arg
连任
必须问我 arg 苟同 "-1s"
弄个 大新闻
吼蛙
识得不识得 arg 苟同 "+1s"
说 "[ ]--[ ] Excited!!!"
批判 大新闻
Angry!
吼了
吼哇
开跑 钦定 i 成 0 演奏 i +1s 赛艇 i 没有 3 高
再续 # next
吼哇
连任
批斗 蛤莱士 成 不吼
弄个 大新闻
批判 大新闻 到 乃
什么也不说
负责
你要问我 蛤莱士 吼不吼
谈笑风生 "Excited!"
安归
怒 到 "Too Young!"
用 "Angry!!!!!" 弹奏 记者 的那个 println
用 0 闷声弹奏 记者 的那个 exit
""" 大概等于
# 连任
# 用 0 弹奏 记者 的那个 exit
# 批判
# 无可奉告
# 结束
"""
吼了
吼了
吼哇
吼蛙 现在这点只是微小的工作 🐸( 不过这是一门独立的程序设计语言 |
西方那一套 <类名>类似于python的class. https://docs.python.org/3/tutorial/classes.html#class-definition-syntax obj.碾压()类似于java的finalize() 见得多啦类似于foreach |
苟利国家 |
a>b
a>b
exit(0)
exit(1)
True
False
None
throw
Exception
Exception(a)
print a
sys.stdout
print >>b a
print >>sys.stderr a
if a: b; else: c
try: a; except: b; finally: c
import
a=b
goto
assert
lambda a: b
a in b
a.b
None
The text was updated successfully, but these errors were encountered: