Files
marqdo/README.md
T
cflmyandCursor c1a4bb47b6 Propose ADR 0001 for validation-phase implementation language.
Recommend TypeScript + remark for syntax validation, with spikes required before scaffolding and Rust left open for a later compiler.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-04 10:55:50 +08:00

62 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Marqdo
**代码即文档。文档即代码。**
Marqdo:Markdown **标记即语法**。源文件 `.mq.md` 既是文稿也是程序。
语法宪法:[doc/design/markdown-mapping.md](doc/design/markdown-mapping.md) · 示例:[examples/](examples/)
---
## 语法速览(v0.1)
| 标记 | 含义 |
|------|------|
| 无标记行 | 注释 |
| `*…*` | 程序语句 |
| `**…**` | **返回值**(架构) |
| `> 输出 …` 等 | 输出等副作用 = **普通函数**,非架构标记 |
| `#` / `##` | 函数与作用域 |
| `+` / `1.` | 分支(臂头单独 `*` = else) |
| `-` | 循环(头下纯名则为形参) |
| 表格 | 集合 |
| `---` / `***` | 可选:框住分支/循环(不强制) |
```markdown
# main
> 输出 内容=Hello World!
## 加一
- n
**`n` + 1**
```
---
## 理念
1. 叙述默认安全(无标记 = 注释)。
2. 返回是架构;打印只是函数。
3. 依赖清单由工具生成(OKF 风格),不是手填配置。
4. 实现语言**未定案**:见选型 ADR [0001](doc/adr/0001-implementation-language.md)(提议:验证期 TypeScript + remark)。
---
## 现状
- 映射 v0.1:[markdown-mapping.md](doc/design/markdown-mapping.md)
- 选型 ADR(提议中):[0001-implementation-language.md](doc/adr/0001-implementation-language.md)
- 选型分析:[tech-stack.md](doc/design/tech-stack.md)
---
## 命名
**Marqdo** = Marq(Markdown)+ do(执行)
## 许可
[Apache License 2.0](LICENSE)