Add v0.2 surface syntax, writeback/subtask stdlib, and view input deferral.
Use + for parameters, ordered-list branches, backtick identifiers, and quoted strings with escapes. Add writeback and subtask host libs, optional parameter defaults, narrative-bold comment fix, and defer view execution until preset stdin is submitted. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
92d88fe761
commit
63e5be80ab
116 files changed
+2226
-559
No files matched your search
@@ -6,9 +6,9 @@ title: 分支示例
|
||||
|
||||
*`x` = 0*
|
||||
|
||||
+ `x` > 0
|
||||
1. `x` > 0
|
||||
> print text=正数
|
||||
+ `x` < 0
|
||||
2. `x` < 0
|
||||
> print text=负数
|
||||
+ *
|
||||
3. *
|
||||
> print text=零
|
||||
@@ -12,5 +12,5 @@ title: 集合(表格)示例
|
||||
| 梨 |
|
||||
| 桃 |
|
||||
|
||||
- [果](篮子)
|
||||
- [`果`](`篮子`)
|
||||
> print text=`果`
|
||||
@@ -8,7 +8,7 @@ description: **** 空返回并结束函数体
|
||||
> 问候 谁=Marqdo
|
||||
|
||||
## 问候
|
||||
- 谁
|
||||
+ `谁`
|
||||
|
||||
> print text=Hi `谁`!
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ description: --- 结束嵌套函数体,后续调用属于外层
|
||||
> 问候 谁=World
|
||||
|
||||
## 问候
|
||||
- 谁
|
||||
+ `谁`
|
||||
|
||||
> print text=Hello `谁`!
|
||||
|
||||
|
||||
@@ -4,11 +4,11 @@ description: 供 frontmatter > 导入;返回用粗体;副作用用输出函
|
||||
---
|
||||
|
||||
## 加一
|
||||
- n
|
||||
+ `n`
|
||||
|
||||
**`n` + 1**
|
||||
|
||||
## 问候
|
||||
- 谁
|
||||
+ `谁`
|
||||
|
||||
> print text=你好,`谁`!
|
||||
@@ -21,5 +21,5 @@ title: 循环示例
|
||||
| 苹果 |
|
||||
| 梨 |
|
||||
|
||||
- [果](篮子)
|
||||
- [`果`](`篮子`)
|
||||
> print text=今天吃`果`
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
title: narrative bold in comment paragraph
|
||||
description: **强调** mid-line must stay comment, not return syntax
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
说明如下
|
||||
|
||||
**强调信息**是什么什么
|
||||
|
||||
> print text=ok
|
||||
@@ -10,6 +10,6 @@ description: Recommended entry — nested fn; print builtin; bold return
|
||||
> 问候 谁=World
|
||||
|
||||
## 问候
|
||||
- 谁
|
||||
+ `谁`
|
||||
|
||||
> print text=Hello `谁`!
|
||||
@@ -4,7 +4,7 @@ title: object handle smoke
|
||||
---
|
||||
|
||||
# counter
|
||||
- n
|
||||
+ `n`
|
||||
|
||||
*`t` = > parse text={"p":"{\"n\":","s":"}"} *
|
||||
*`qn` = > str `n` *
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
title: optional param default
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
> tag name=Ada
|
||||
|
||||
> tag name=Bob suffix=Hello
|
||||
|
||||
## tag
|
||||
+ `name`
|
||||
+ `suffix`=Hi
|
||||
|
||||
> print text=`suffix`, `name`!
|
||||
@@ -14,6 +14,6 @@ description: `> fn value` binds by parameter order; named form still works
|
||||
> 问候 谁=World
|
||||
|
||||
## 问候
|
||||
- 谁
|
||||
+ `谁`
|
||||
|
||||
> print text=Hello `谁`!
|
||||
Reference in new issue
Block a user