【文件属性】:
文件名称:xemmai:动态编程语言
文件大小:174KB
文件格式:ZIP
更新时间:2021-04-07 20:48:30
programming-language c-plus-plus interpreter C++
Xemmai
xemmai是一种动态编程语言。 它的语法基于越位规则。 在不需要与缩进结合使用的情况下,可以省略右括号,括号和花括号。
看起来是这样的:
system = Module("system"
print = system.out.write_line
hanoi = @(towers, move)
step = @(height, from, via, to)
height > 1 && step(height - 1, from, to, via
move(from, to
height > 1 && step(height - 1, via, from, to
step(towers[0].size(), towers[0], towers[1], towers[2]
towers = '(
[1