You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,43 @@
1
+
# v0.1.3
2
+
3
+
## Macros (Experimental)
4
+
5
+
As you might (not) have noticed, *wenyan-lang* strives to be more readable (for ancient Chinese people). **Macros** provide syntactic sugars to bring the 文采 of your code to the next level.
6
+
7
+
E.g. Now you can patch wenyan-lang's notorius print function like so:
8
+
9
+
```
10
+
或云「「書「甲」焉」」。
11
+
蓋謂「「吾有一言。曰「甲」。書之」」。
12
+
13
+
書「「問天地好在」」焉。
14
+
```
15
+
16
+
Since we're beating JavaScript to macros, here is a rough C equivalence:
17
+
18
+
```
19
+
#define 書(甲)焉 吾有一言。曰甲。書之
20
+
書("問天地好在")焉。
21
+
```
22
+
23
+
See [**Full Documation**](https://github.com/LingDong-/wenyan-lang/blob/master/documentation/Macros.md), #440 for more details.
24
+
25
+
### Standard Library
26
+
A new standard library `畫譜` that manipulates canvas on web pages. Check out the demo on Online IDE!
27
+
28
+
### Browser Runtime
29
+
New package [`@wenyanlang/runtime`](https://github.com/LingDong-/wenyan-lang/blob/master/documentation/Runtime.md) allowing you to run Wenyan direct in `<script>` tag of html! (PR #433, thanks @antfu)
0 commit comments