diff --git a/src/twopass.rs b/src/twopass.rs index 5a6cc04..e5df432 100644 --- a/src/twopass.rs +++ b/src/twopass.rs @@ -137,7 +137,11 @@ fn lookup(scope: &BuildContext<'_>, loc: &ast::Location) -> Location { index: Box::new(Expression::Constant(ast::Constant::String(name.clone()))), } } - ast::Location::Field { table, index } => todo!(), + ast::Location::Field { table, index } => { + let table = Box::new(lookup(scope, &table)); + let index = Box::new(build_expression(scope, &index)); + Location::Field { table, index } + } } }