feat(parse): bold infix expressions are ExprStmt, not calls

`` **n + 1** `` evaluates and discards (design §6.2); keep assign-first and
bare-call fallback. Explicit `` **> …** `` uses standalone bare=text rules.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-14 15:12:00 +08:00
1 parent 114fd53cd1
commit bccfec86ba
9 files changed
+81 -8

No files matched your search

+5
View File
@@ -335,6 +335,11 @@ impl<'a> FnCompiler<'a> {
self.stmt_span = *span;
self.compile_call(call, true)?;
}
Stmt::Expr { value, span } => {
self.stmt_span = *span;
self.compile_expr(value)?;
self.emit(Op::Pop);
}
Stmt::Branch { arms, span } => {
self.stmt_span = *span;
let mut end_jumps = Vec::new();