add args to processes
This commit is contained in:
parent
f4fbae10e6
commit
5b41365caa
|
@ -94,7 +94,7 @@ pub fn prelude<'src>() -> Process<'src> {
|
||||||
locals: vec![],
|
locals: vec![],
|
||||||
ast: p_ast,
|
ast: p_ast,
|
||||||
prelude: base_pkg,
|
prelude: base_pkg,
|
||||||
// prelude_ast: &Ast::Nil,
|
args: Value::Nil,
|
||||||
};
|
};
|
||||||
|
|
||||||
let prelude = base_ctx.eval();
|
let prelude = base_ctx.eval();
|
||||||
|
@ -122,7 +122,7 @@ pub fn prelude<'src>() -> Process<'src> {
|
||||||
locals: vec![],
|
locals: vec![],
|
||||||
ast: &Ast::Nil,
|
ast: &Ast::Nil,
|
||||||
prelude: p_ctx,
|
prelude: p_ctx,
|
||||||
// prelude_ast: p_ast,
|
args: Value::Nil,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,8 +31,8 @@ type LResult<'src> = Result<Value<'src>, LErr>;
|
||||||
pub struct Process<'src> {
|
pub struct Process<'src> {
|
||||||
pub locals: Vec<(String, Value<'src>)>,
|
pub locals: Vec<(String, Value<'src>)>,
|
||||||
pub prelude: Vec<(String, Value<'src>)>,
|
pub prelude: Vec<(String, Value<'src>)>,
|
||||||
// pub prelude_ast: &'src Ast,
|
|
||||||
pub ast: &'src Ast,
|
pub ast: &'src Ast,
|
||||||
|
pub args: Value<'src>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'src> Process<'src> {
|
impl<'src> Process<'src> {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user