Skip to content

Commit 4dd81e8

Browse files
committed
Merge branch 'master' into chore/import-marker
2 parents 686e9eb + edbaa9d commit 4dd81e8

File tree

9 files changed

+483
-105
lines changed

9 files changed

+483
-105
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Before opening an Issue, please check if it belongs to the below categories:
215215
|[Language Spec](https://github.com/LingDong-/wenyan-lang/issues/1)| ***** | | In progress |
216216
|[Class](https://github.com/LingDong-/wenyan-lang/issues/31) / [Object literals](https://github.com/LingDong-/wenyan-lang/issues/20) | *** | | Object literals added |
217217
|[Import statements](https://github.com/LingDong-/wenyan-lang/issues/100) | *** | | Import statements are added |
218-
|Standard library ([Math](https://github.com/LingDong-/wenyan-lang/issues/55)/[Bitwise ops](https://github.com/LingDong-/wenyan-lang/issues/2)/[Random](https://github.com/LingDong-/wenyan-lang/issues/87)) | ***** || In porgress |
218+
|Standard library ([Math](https://github.com/LingDong-/wenyan-lang/issues/55)/[Bitwise ops](https://github.com/LingDong-/wenyan-lang/issues/2)/[Random](https://github.com/LingDong-/wenyan-lang/issues/87)) | ***** || In progress |
219219
|[Test suite](https://github.com/LingDong-/wenyan-lang/issues/38)| **** || In progress |
220220
|[Switch statements](https://github.com/LingDong-/wenyan-lang/issues/53)| *** | |
221221
|[Functional programming](https://github.com/LingDong-/wenyan-lang/issues/99) | *** | |
@@ -237,4 +237,4 @@ If you could help implement a feature with a `√` under `help needed`, please f
237237
|Name|Priority|Help needed|Status|
238238
|---|---|---|---|
239239
|[hanzi2num conversion error](https://github.com/LingDong-/wenyan-lang/issues/114)| ***** | | |
240-
|[hanzi2num multi-character numbers not included](https://github.com/LingDong-/wenyan-lang/issues/130) | *** | | |
240+
|[hanzi2num multi-character numbers not included](https://github.com/LingDong-/wenyan-lang/issues/130) | *** | | |

examples/README.md

Lines changed: 63 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,68 @@
11

22
# Examples(範例)
33

4-
| File(文檔) | Remark(說明) |
5-
| -------------------------- | ----------------------- |
6-
| beer.wy | while |
7-
| collatz.wy | 角谷猜想 |
8-
| collatz2.wy | 考拉兹猜想(角谷猜想) |
9-
| divination.wy | 春秋古筮法 |
10-
| eightqueens.wy | 八皇后問題 |
11-
| euclidean.wy | 歐幾里得法 |
12-
| factorial.wy | 階乘 |
13-
| fibonacci.wy | 斐波那契 |
14-
| fibonacci2.wy | 斐氏列 |
15-
| fizzbuzz.wy | [Fizz buzz][1] |
16-
| hanoi.wy | 漢諾塔 |
17-
| helloworld.wy | 問天地好在 |
18-
| helloworld+.wy | 問天地好在+ |
19-
| import.wy | 導入 |
20-
| mandelbrot.wy | 曼德博集 |
21-
| mergesort.wy | 歸併排序 |
22-
| misc.wy | 雜項 |
23-
| modinv.wy | 大衍求一術 |
24-
| multiplication_table.wy | 乘算口訣 |
25-
| nested_fun.wy | 函数 |
26-
| obj.wy | 对象 |
27-
| pi_leibniz.wy | 萊布尼茲圓周率估算 |
28-
| quicksort.wy | 快速排序 |
29-
| quicksort_inplace.wy | 快速排序2 |
30-
| quine.wy | [自產生程式][2] |
31-
| quine2.wy | 自產生程式2 |
32-
| selectionsort.wy | 選擇排序 |
33-
| sieve.wy | 埃氏篩 |
34-
| sqrt_newton.wy | 牛頓求根法 |
35-
| turing.wy | 圖靈機 |
4+
| File(文檔) | Remark(說明) |
5+
| -------------------------- | ----------------------- |
6+
| [beer.wy][3] | while |
7+
| [collatz.wy][4] | 角谷猜想 |
8+
| [collatz2.wy][5] | 考拉兹猜想(角谷猜想) |
9+
| [divination.wy][6] | 春秋古筮法 |
10+
| [eightqueens.wy][7] | 八皇后問題 |
11+
| [euclidean.wy][8] | 歐幾里得法 |
12+
| [factorial.wy][9] | 階乘 |
13+
| [fibonacci.wy][10] | 斐波那契 |
14+
| [fibonacci2.wy][11] | 斐氏列 |
15+
| [fizzbuzz.wy][12] | [Fizz buzz][1] |
16+
| [hanoi.wy][13] | 漢諾塔 |
17+
| [helloworld.wy][14] | 問天地好在 |
18+
| [helloworld+.wy][15] | 問天地好在+ |
19+
| [import.wy][16] | 導入 |
20+
| [mandelbrot.wy][17] | 曼德博集 |
21+
| [mergesort.wy][18] | 歸併排序 |
22+
| [misc.wy][19] | 雜項 |
23+
| [modinv.wy][20] | 大衍求一術 |
24+
| [multiplication_table.wy][21] | 乘算口訣 |
25+
| [nested_fun.wy][22] | 函数 |
26+
| [obj.wy][23] | 对象 |
27+
| [pi_leibniz.wy][24] | 萊布尼茲圓周率估算 |
28+
| [quicksort.wy][25] | 快速排序 |
29+
| [quicksort_inplace.wy][26] | 快速排序2 |
30+
| [quine.wy][27] | [自產生程式][2] |
31+
| [quine2.wy][28] | 自產生程式2 |
32+
| [selectionsort.wy][29] | 選擇排序 |
33+
| [sieve.wy][30] | 埃氏篩 |
34+
| [sqrt_newton.wy][31] | 牛頓求根法 |
35+
| [turing.wy][32] | 圖靈機 |
3636

3737
[1]: https://en.wikipedia.org/wiki/Fizz_buzz "Fizz buzz"
38-
[2]: https://zh.wikipedia.org/wiki/自產生程式 "自產生程式"
38+
[2]: https://zh.wikipedia.org/wiki/自產生程式 "自產生程式"
39+
[3]: beer.wy
40+
[4]: collatz.wy
41+
[5]: collatz2.wy
42+
[6]: divination.wy
43+
[7]: eightqueens.wy
44+
[8]: euclidean.wy
45+
[9]: factorial.wy
46+
[10]: fibonacci.wy
47+
[11]: fibonacci2.wy
48+
[12]: fizzbuzz.wy
49+
[13]: hanoi.wy
50+
[14]: helloworld.wy
51+
[15]: helloworld+.wy
52+
[16]: import.wy
53+
[17]: mandelbrot.wy
54+
[18]: mergesort.wy
55+
[19]: misc.wy
56+
[20]: modinv.wy
57+
[21]: multiplication_table.wy
58+
[22]: nested_fun.wy
59+
[23]: obj.wy
60+
[24]: pi_leobniz.wy
61+
[25]: quicksort.wy
62+
[26]: quicksort_inplace.wy
63+
[27]: quine.wy
64+
[28]: quine2.wy
65+
[29]: selectionsort.wy
66+
[30]: sieve.wy
67+
[31]: sqrt_newton.wy
68+
[32]: turing.wy

examples/try.wy

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
姑妄行此。
3+
嗚呼。「「滅頂」」之禍。
4+
5+
如事不諧。豈「「ReferenceError」」之禍歟。
6+
吾有一言。曰「「本無此物。奈何用之」」。書之。
7+
8+
豈「「SyntaxError」」之禍歟。
9+
吾有一言。曰「「不合文法。不通之甚」」。書之。
10+
11+
豈「「TypeError」」之禍歟。
12+
吾有一言。曰「「物各其類。豈可混同」」。書之。
13+
14+
豈「「滅頂」」之禍歟。
15+
吾有一言。曰「「嗚呼哀哉。伏维尚飨」」。書之。
16+
17+
不知何禍歟。名之曰「奇禍」。
18+
吾有一言。曰「「人坐家中。禍從天降」」。書之。
19+
20+
乃作罷。
21+
22+
23+
姑妄行此。
24+
嗚呼。「「無足輕重」」之禍。
25+
如事不諧乃作罷。
26+
27+
28+
姑妄行此。
29+
嗚呼。「「事不關心」」之禍。
30+
31+
如事不諧。不知何禍歟。書之。乃作罷。

0 commit comments

Comments
 (0)