Interpreter - Initial implementation of bound methods

This commit is contained in:
Emmanuel BENOîT 2023-01-09 10:50:04 +01:00
parent a2986a1342
commit 542bc56aad
2 changed files with 63 additions and 1 deletions
src/interpreter

View file

@ -31,6 +31,10 @@ impl Function {
env: environment,
}
}
pub(super) fn name(&self) -> Option<&Token> {
self.name.as_ref()
}
}
impl Callable for Function {