# @cirru/jiuzhang

ClojureScript workflow using Calcit Editor

## Usage no npm install needed!

``````<script type="module">
import cirruJiuzhang from 'https://cdn.skypack.dev/@cirru/jiuzhang';
</script>``````

## 九章编程(jiuzhang dialect)

Status: only a prototype. not under development.

Toy project of mimicing Ancient Chinese programming. Based on Cirru project. Learning from The Nine Chapters on the Mathematical Art.

Previews http://jiuzhang.cirru.org/ .

Originals https://zh.m.wikisource.org/zh-hans/九章算術 .

### Usage

``````yarn global add @cirru/jiuzhang

jiuzhang demo.cirru

# 或者 9c(nine chapters)
9c demo.cirru
``````

### Examples

``````按 "此乃例句, 毋究之"
``````

``````三十三
``````

``````|文
"|文, 文"
``````

``````有 甲 三十三

``````

``````答曰 |丙为 丙
``````

``````今有 丁 \$ 列 甲 乙 丙

``````

``````今有 丁 (列 甲 乙 丙)

列 甲 乙 丙
``````

``````今有 戊 \$ 置
|乾 一
|坤 二
|坎 三
|离 四

``````

``````术曰 问相加几何 (子 午)
得 \$ 加 子 午

``````

``````今有 几何者 \$ 列 虚 实

则
答曰 |非虚也
答曰 |然而
则
答曰 |虚也
``````

``````得 空
``````

``````得 \$ 并 甲 甲 甲

``````

`js/Math.min` 取运行平台之函数,

``````得 \$ js/Math.min 两百 一百 四百
``````

`引`取模块, `clj/js->clj` 取数据转化之法:

``````今有 文件服务 \$ 引 fs

``````

### Workflow

https://github.com/calcit-lang/respo-calcit-workflow