Add English builtins, pipeline dump flags, and M1 line classification.

Document a minimal Python-inspired keyword set (print/input, True/False/None), require visible --dump-* stages, and ship working --dump-lines for .mq.md sources.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-04 11:28:15 +08:00
1 parent 63d7866d06
commit 69b626e919
24 files changed
+481 -86

No files matched your search

+4 -4
View File
@@ -1,4 +1,4 @@
---
---
title: 分支示例
---
@@ -7,8 +7,8 @@ title: 分支示例
*`x` = 0*
+ `x` > 0
> 输出 内容=正数
> print text=正数
+ `x` < 0
> 输出 内容=负数
> print text=负数
+ *
> 输出 内容=零
> print text=零
+2 -2
View File
@@ -1,4 +1,4 @@
---
---
title: 集合(表格)示例
---
@@ -13,4 +13,4 @@ title: 集合(表格)示例
| 桃 |
- [果](篮子)
> 输出 内容=`果`
> print text=`果`
+3 -3
View File
@@ -1,5 +1,5 @@
# Hello World
# Hello World
本程序调用内置(或 prelude)函数 `输出` 打印问候。注释里的 **粗体** 与 *斜体* 都不执行。
本程序调用内置函数 `print` 打印问候。注释里的 **粗体** 与 *斜体* 都不执行。
> 输出 内容=Hello World!
> print text=Hello World!
+4 -4
View File
@@ -1,15 +1,15 @@
---
---
title: Hello World
description: 推荐风格——内嵌函数;输出为函数调用;返回用粗体
description: Recommended entry — nested fn; print builtin; bold return
---
# main
打印一句问候。`输出` 是函数,不是语法架构;粗体只用于返回值。
打印一句问候。`print` 是函数,不是语法架构;粗体只用于返回值。
> 问候 谁=World
## 问候
- 谁
> 输出 内容=Hello `谁`!
> print text=Hello `谁`!
+3 -3
View File
@@ -1,4 +1,4 @@
---
---
title: 循环示例
---
@@ -9,7 +9,7 @@ title: 循环示例
*`n` = 3*
- `n` > 0
> 输出 内容=`n`
> print text=`n`
*`n` = `n` - 1*
## foreach:遍历篮子
@@ -22,4 +22,4 @@ title: 循环示例
| 梨 |
- [果](篮子)
> 输出 内容=今天吃`果`
> print text=今天吃`果`
+2 -2
View File
@@ -1,4 +1,4 @@
---
---
title: 工具函数
description: 供 frontmatter > 导入;返回用粗体;副作用用输出函数
---
@@ -11,4 +11,4 @@ description: 供 frontmatter > 导入;返回用粗体;副作用用输出函
# 问候
- 谁
> 输出 内容=你好,`谁`!
> print text=你好,`谁`!
+2 -2
View File
@@ -1,4 +1,4 @@
---
---
title: 跨文件导入示例
> utils.mq.md
---
@@ -9,6 +9,6 @@ title: 跨文件导入示例
*`y` = > 加一 n=41*
> 输出 内容=`y`
> print text=`y`
> 问候 谁=Marqdo