From 02a4f1873c71f3aaf564c84f4b9a70eae2a8a731 Mon Sep 17 00:00:00 2001 From: "MATSUMOTO, Katsuyoshi" Date: Tue, 2 Jan 2024 02:31:22 +0900 Subject: [PATCH] add :BEGIN node for ruby 3.3 --- lib/vaporware/compiler/generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vaporware/compiler/generator.rb b/lib/vaporware/compiler/generator.rb index 3526dfd..9c59e5f 100644 --- a/lib/vaporware/compiler/generator.rb +++ b/lib/vaporware/compiler/generator.rb @@ -157,7 +157,7 @@ def to_asm(node, output, method_tree = false) when :LIT output.puts " push #{node.children.last}" return - when :LIST, :BLOCK + when :LIST, :BLOCK, :BEGIN node.children.each { |n| to_asm(n, output, method_tree) } return when :SCOPE