release: v2.2.0 call one function in any .mq.md
The same page is the document, the knowledge and the program. marqdo call runs that function with arguments, so reuse, tools and tests do not need a second skill system. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
4018e9928a
commit
1730f26fc7
42 files changed
+1917
-116
No files matched your search
+5
-1
@@ -3,9 +3,11 @@
|
||||
mod compile;
|
||||
mod vm;
|
||||
|
||||
pub use compile::compile_module;
|
||||
pub use compile::{compile_for_call, compile_module};
|
||||
pub use vm::Vm;
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
||||
use crate::diagnostics::Span;
|
||||
use crate::value::Value;
|
||||
|
||||
@@ -100,6 +102,8 @@ pub struct Program {
|
||||
pub parents: Vec<Option<usize>>,
|
||||
/// Parallel to `functions`: child fn indices.
|
||||
pub children: Vec<Vec<usize>>,
|
||||
/// Dotted path (`计算器.加法`, `inc.加一`) → function index. Entry module exports plus imports.
|
||||
pub path_index: HashMap<Vec<String>, usize>,
|
||||
}
|
||||
|
||||
impl Program {
|
||||
|
||||
Reference in new issue
Block a user