Mark out weird oddity with value() in reduced_ast
This commit is contained in:
parent
f5328fac9d
commit
769ef448e8
@ -185,13 +185,16 @@ impl<'a> Reducer<'a> {
|
||||
|
||||
//TODO this probably needs to change
|
||||
let FullyQualifiedSymbolName(ref v) = sym_name;
|
||||
let name = v.last().unwrap().name.clone();
|
||||
//let name = v.last().unwrap().name.clone();
|
||||
|
||||
let Symbol { local_name, spec, .. } = match self.symbol_table.lookup_by_fqsn(&sym_name) {
|
||||
Some(s) => s,
|
||||
//TODO investigate why this fails
|
||||
//TODO this causes several evaluation tests to fail, figure out what's going on here
|
||||
//None => return Expr::ReductionError(format!("Symbol {:?} not found", sym_name)),
|
||||
None => return Expr::Sym(name)
|
||||
None => {
|
||||
let name = qualified_name.components.last().unwrap().clone();
|
||||
return Expr::Sym(name)
|
||||
}
|
||||
};
|
||||
|
||||
match spec {
|
||||
|
Loading…
Reference in New Issue
Block a user