A Tiny Language · 17 Keywords

Tao 语言

Tao is a tiny language implemented in Ruby

Features

特性

Quickstart

快速上手

Step 01

gem install taoism

安装 gem

Step 02

tao hello.tao

以脚本运行

Step 03

taoism

交互式控制台

hello.tao
package app

data Point {
  x = 0
  y = 0
}

fun add(a, b) {
  return a + b
}

fun main() {
  let mut p = Point(1, 2)
  p.x = 3
  let total = add(p.x, p.y)
}

Philosophy

哲思

道生一,一生二,二生三,三生萬物。

字面量六,由是生萬物,少而不窮;築于 Ruby,而異于 Ruby。

「有之以為利,無之以為用。」

Tao 以「道」名,設計之哲,依《道德經》而行。