lookup table fields

This commit is contained in:
numzero 2025-04-19 12:43:47 +03:00
parent 9b0127f961
commit 3b8de2886e

View File

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