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:
cflmyandCursor committed 2026-08-06 17:52:33 +08:00
1 parent 92d88fe761
commit 63e5be80ab
116 files changed
+2226 -559

No files matched your search

+4
View File
@@ -357,6 +357,7 @@ impl Vm {
slots,
});
self.host.push_call_frame(&fname);
self.host.push_call_site_line(span.line);
}
Op::TagInstance(idx) => {
let type_name = match fun.constants.get(idx as usize) {
@@ -422,6 +423,7 @@ impl Vm {
slots,
});
self.host.push_call_frame(&fname);
self.host.push_call_site_line(span.line);
}
Op::PluginCall(name_idx, argc) => {
let argc = argc as usize;
@@ -509,11 +511,13 @@ impl Vm {
slots,
});
self.host.push_call_frame(&fname);
self.host.push_call_site_line(span.line);
}
Op::Return => {
let ret = pop(&mut stack).unwrap_or(Value::None);
frames.pop();
self.host.pop_call_frame();
self.host.pop_call_site_line();
if frames.is_empty() {
return Ok(ret);
}