FossilOrigin-Name: fae7fe1a493cd7d2c31e140204cfd581080c6bf5a70ed967107a1a5237bed129
private
alpha 2 years ago
parent 2a5230c925
commit 28b9fd32d0

@ -138,7 +138,13 @@ module Lox
left * right
else fail
end
end
def visit_call(expr)
callee = evaluate(expr.callee)
args = expr.args.map { evaluate(_1) }
callee.call(self, args)
end
private

Loading…
Cancel
Save