diff --git a/TODO.md b/TODO.md index 79733ce..cf0804c 100644 --- a/TODO.md +++ b/TODO.md @@ -1,9 +1,10 @@ # TODO items ## General code cleanup -- standardize on an error type that isn't String --give scope reduction reference to symbol_table -turn ast reduction into methods-on-struct-returning-result format +-implement and test open/use statements +- standardize on an error type that isn't String +-implement a visitor pattern for the use of scope_resolver ## Reduction - make a good type for actual language builtins to avoid string comparisons diff --git a/schala-lang/language/src/reduced_ast.rs b/schala-lang/language/src/reduced_ast.rs index 25a749b..b7d48dd 100644 --- a/schala-lang/language/src/reduced_ast.rs +++ b/schala-lang/language/src/reduced_ast.rs @@ -160,6 +160,7 @@ impl Meta { Some(ref fqsn) => fqsn, None => return Expr::ReductionError(format!("FQSN lookup for Value {:?} failed", qualified_name)), }; + //TODO this probably needs to change let FullyQualifiedSymbolName(ref v) = sym_name; let name = v.last().unwrap().name.clone(); match symbol_table.lookup_by_fqsn(&sym_name) {