Mark out weird oddity with value() in reduced_ast

This commit is contained in:
Greg Shuflin 2021-10-19 00:37:44 -07:00
parent f5328fac9d
commit 769ef448e8
1 changed files with 6 additions and 3 deletions

View File

@ -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 {