refmt
This commit is contained in:
parent
f805290a4b
commit
be73b0b828
17 changed files with 588 additions and 675 deletions
|
|
@ -15,14 +15,14 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
use crate::func::{FTable, Function, Args, Operation};
|
||||
use crate::vars::{VTable};
|
||||
use crate::segment::{Ctr, Ast, circuit, list_idx, list_append, new_ast};
|
||||
use std::rc::Rc;
|
||||
use crate::func::{Args, FTable, Function, Operation};
|
||||
use crate::segment::{circuit, list_append, list_idx, new_ast, Ast, Ctr};
|
||||
use crate::vars::VTable;
|
||||
use std::cell::RefCell;
|
||||
use std::rc::Rc;
|
||||
|
||||
pub fn get_append() -> Function {
|
||||
return Function{
|
||||
return Function {
|
||||
name: String::from("append"),
|
||||
loose_syms: false,
|
||||
eval_lazy: false,
|
||||
|
|
@ -40,16 +40,18 @@ pub fn get_append() -> Function {
|
|||
list_append(c.clone(), arg.clone());
|
||||
return true;
|
||||
}) {
|
||||
eprintln!("get_append circuit loop should not have returned false");
|
||||
eprintln!(
|
||||
"get_append circuit loop should not have returned false"
|
||||
);
|
||||
}
|
||||
},
|
||||
}
|
||||
_ => {
|
||||
eprintln!("get_append args somehow not in standard form");
|
||||
}
|
||||
}
|
||||
|
||||
return ptr;
|
||||
},
|
||||
}
|
||||
_ => {
|
||||
let n = new_ast(Ctr::None, Ctr::None);
|
||||
if !circuit(a, &mut |arg: &Ctr| -> bool {
|
||||
|
|
@ -62,7 +64,7 @@ pub fn get_append() -> Function {
|
|||
return Ctr::Seg(n);
|
||||
}
|
||||
}
|
||||
}
|
||||
))
|
||||
},
|
||||
)),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue