Interpreter - Initial implementation of bound methods
This commit is contained in:
parent
a2986a1342
commit
542bc56aad
2 changed files with 63 additions and 1 deletions
src/interpreter
|
@ -31,6 +31,10 @@ impl Function {
|
|||
env: environment,
|
||||
}
|
||||
}
|
||||
|
||||
pub(super) fn name(&self) -> Option<&Token> {
|
||||
self.name.as_ref()
|
||||
}
|
||||
}
|
||||
|
||||
impl Callable for Function {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue