雷姆·兰戈,很舒服。
remlang的Python项目详细描述
rem langauge
只需使用pypi。建议在安装前安装cytoolz。 rem加速函数调用。
pip install remlang
一些支持的功能
查看所有功能 Inrtoduction。
- 当前支持case语法。
case expr as destruction [when condition] => statements end
- 字典模式匹配
case %{a: b} as {a : &b+1} => 1 as {a : &b } => 2 end
功能参数销毁
>> {|(1, 2, c)| c*2} (1, 2, 3) => 6
**Inverted Syntax** (请参见链接页面中的优先级表)
file . open . write some_text
.具有高优先级,而then具有低优先级。
Into Statement(只是 喜欢goto)
关
雷姆中音, 代词发生器 内容提要 中新网
>> call 中文编程 >> 对于 [3, 2] 作为 [甲, 乙] => 甲 * 乙 结束 # 等价于 => # case [3, 2] as [甲, 乙] => 甲 * 乙 end => 6
英代币
English | 中文 |
---|---|
then | 然后 |
when | 当 |
and | 并且 |
or | 或者 |
in | 含于 |
not | 非 |
case | 对于 |
as | 作为 |
end | 结束 |
where | 其中 |
from | 从 |
import | 导入 |
yield | 生成 |
into | 跳跃到 |
let | 使/让 |
True | 真 |
False | 假 |
None | 空 |
is | 是 |
^{tt3}$ | 之 |
^{tt10}$ | 它 |
= | 等于 |