diff --git a/ruby/lib/lox.rb b/ruby/lib/lox.rb index cff3742..ae69c33 100644 --- a/ruby/lib/lox.rb +++ b/ruby/lib/lox.rb @@ -18,6 +18,7 @@ module Lox def scan(src) = @scanner.scan(src) def parse(tokens) = Parser.new(tokens).parse! + def resolve(stmts) = Resolver.new(@interpreter).resolve(*stmts) def interpret(stmts) = @interpreter.interpret(stmts) end