11.4.3
change rvruoynxzsyprsurmuzroqwnqqwqzunt
commit 50884c3423e4dc93c6704c1fc14bef3b019e367c
author Alpha Chen <alpha@kejadlen.dev>
date
parent vosswqlr
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