docs(code): remove stale pre-RFC role wording and fix review aid

Follow-up cleanup of text left by the concurrent implementation:

- marqdo-markdown AST, marqdo-ir statements/branch arms, frontend units,
  payload and signature module docs now describe RFC-LANG-0002 roles
  (payload carriers, heading modes, if/else groups, while/end, params)
- marqdo-expression public docs list parse_payload_statement and stop
  describing a Markdown-link call that no longer exists
- retired markdown.invalid_construct/markdown.inert_executable constants
  are documented as decode-only history for old Analysis/Trace JSON
- drop the stale 'expected red' comment in the CLI integration test
- the dev-only .mq.md review aid no longer reports semicolons inside
  string literals, and skips AST baselines / expected-invalid negatives

Verified: fmt, clippy -D warnings and cargo test --workspace --locked green.
This commit is contained in:
cflmy committed 2026-11-21 15:44:31 +08:00
1 parent 361a6cc341
commit d5002ac826
9 files changed
+104 -52

No files matched your search

+9 -8
View File
@@ -228,8 +228,9 @@ pub struct Function {
/// Writable place of an assignment (ADR-0022).
///
/// The Markdown surface is unchanged: both variants are `strong` nodes whose
/// payload contains `target = expression`. `Local` rebinds a frame slot;
/// Both variants come from an executable payload whose text is
/// `target = expression` (any carrier: `Strong`, `Emph` or inline `Code`).
/// `Local` rebinds a frame slot;
/// `Index` writes one byte into an addressable runtime `Memory` region and is
/// rejected for every other base value.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
@@ -283,14 +284,14 @@ pub enum Stmt {
/// Span of the whole statement.
span: Span,
},
/// Ordered list: first matching condition wins.
/// `if`/`else` group: the first true arm wins.
Branch {
/// Arms in AST order.
arms: Vec<BranchArm>,
/// Span of the list node.
span: Span,
},
/// Bullet list item: a `while` loop.
/// `while`/`end` group.
Loop {
/// Loop condition.
condition: Expr,
@@ -298,10 +299,10 @@ pub enum Stmt {
condition_span: Span,
/// Loop body.
body: Vec<Stmt>,
/// Span of the list item.
/// Span of the whole `while` statement.
span: Span,
},
/// Return from the enclosing function (`emph` node).
/// Return from the enclosing function (`return` statement).
Return {
/// Returned expression.
value: Expr,
@@ -323,12 +324,12 @@ impl Stmt {
}
}
/// One arm of a branch (ordered list item).
/// One arm of an `if`/`else` group.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct BranchArm {
/// Boolean condition expression.
pub condition: Expr,
/// Span of the condition code span.
/// Span of the condition payload.
pub condition_span: Span,
/// Statements executed when the condition is true.
pub body: Vec<Stmt>,