mirror of
https://github.com/urbit/ares.git
synced 2024-11-23 09:06:23 +03:00
wip: formatting
This commit is contained in:
parent
695a878754
commit
d8e6db14ef
@ -12,9 +12,9 @@ edition = "2018"
|
||||
# Please keep these alphabetized
|
||||
[dependencies]
|
||||
ares_macros = { path = "../ares_macros" }
|
||||
assert_no_alloc = "1.1.2"
|
||||
# assert_no_alloc = "1.1.2"
|
||||
# use this when debugging requires allocation (e.g. eprintln)
|
||||
# assert_no_alloc = {version="1.1.2", features=["warn_debug"]}
|
||||
assert_no_alloc = {version="1.1.2", features=["warn_debug"]}
|
||||
bitvec = "1.0.0"
|
||||
criterion = "0.4"
|
||||
either = "1.9.0"
|
||||
|
@ -257,7 +257,6 @@ pub fn jet_stir(context: &mut Context, subject: Noun) -> Result {
|
||||
let quq_wag: Noun;
|
||||
|
||||
// push incremental, succesful [fel] parse results onto stack
|
||||
{
|
||||
let mut vex = slam(context, fel, tub)?.as_cell()?;
|
||||
let mut p_vex = vex.head();
|
||||
let mut q_vex = vex.tail();
|
||||
@ -281,7 +280,6 @@ pub fn jet_stir(context: &mut Context, subject: Noun) -> Result {
|
||||
p_wag = p_vex;
|
||||
puq_wag = rud;
|
||||
quq_wag = tub;
|
||||
}
|
||||
|
||||
// unwind the stack, folding parse results into [wag] by way of [raq]
|
||||
eprintln!("stir: unwinding stack");
|
||||
@ -289,13 +287,17 @@ pub fn jet_stir(context: &mut Context, subject: Noun) -> Result {
|
||||
p_wag = util::last(p_wag, puq_wag)?;
|
||||
let sam = T(&mut context.stack, &[par_u.res, puq_wag]);
|
||||
puq_wag = slam(context, raq, sam)?;
|
||||
unsafe { context.stack.pop::<StirPair>(); };
|
||||
unsafe {
|
||||
context.stack.pop::<StirPair>();
|
||||
};
|
||||
par_u = unsafe { *(context.stack.top::<StirPair>()) };
|
||||
}
|
||||
|
||||
eprintln!("stir: unwind done");
|
||||
|
||||
unsafe { context.stack.frame_pop(); };
|
||||
unsafe {
|
||||
context.stack.frame_pop();
|
||||
};
|
||||
|
||||
eprintln!("stir: done");
|
||||
Ok(T(&mut context.stack, &[p_wag, D(0), puq_wag, quq_wag]))
|
||||
|
Loading…
Reference in New Issue
Block a user