add args to processes

This commit is contained in:
Scott Richmond 2024-12-11 15:45:34 -05:00
parent f4fbae10e6
commit 5b41365caa
2 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ pub fn prelude<'src>() -> Process<'src> {
locals: vec![],
ast: p_ast,
prelude: base_pkg,
// prelude_ast: &Ast::Nil,
args: Value::Nil,
};
let prelude = base_ctx.eval();
@ -122,7 +122,7 @@ pub fn prelude<'src>() -> Process<'src> {
locals: vec![],
ast: &Ast::Nil,
prelude: p_ctx,
// prelude_ast: p_ast,
args: Value::Nil,
}
}

View File

@ -31,8 +31,8 @@ type LResult<'src> = Result<Value<'src>, LErr>;
pub struct Process<'src> {
pub locals: Vec<(String, Value<'src>)>,
pub prelude: Vec<(String, Value<'src>)>,
// pub prelude_ast: &'src Ast,
pub ast: &'src Ast,
pub args: Value<'src>,
}
impl<'src> Process<'src> {