From 972fd0cdb9f850f68efdf41cd46042da0726a568 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Tue, 22 Sep 2026 13:48:55 +0200 Subject: [PATCH] =?UTF-8?q?deps:=20parser=20v0.2.0=20=E2=80=94=20the=20syn?= =?UTF-8?q?tax=20that=20made=2013=20language=20spec=20files=20unparseable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit go-ruby-parser v0.2.0 closes fourteen grammar gaps, and the point of them is not the constructs themselves: thirteen language/*_spec.rb files of the pinned corpus could not be parsed at all, so they contributed ZERO to both columns of the measurement. They were not failing, they were invisible. Sweeping language/ with the pre-bump and post-bump binaries against the same corpus, same timeout: parser v0.1.9 pass=1443 fail+error=283 parser v0.2.0 pass=1776 fail+error=436 +333 passing. fail+error rises at the same time because the files that now parse bring their own failures with them — they previously contributed neither. That is the same arithmetic variables_spec produced when it was unblocked. Among the fourteen, two were SILENT mis-parses rather than refusals: a brace block written after a space, `o.s (:a){ 1 }`, bound to the argument instead of the call; and the trailing comma of `in [0, 1, ]` was dropped, turning a partial pattern into an exact one so `case [0,1,2,3]` fell through to `else`. Both are verified against ruby 4.0.5 through the rbgo binary here. Four files parse now but stop in rbgo's own compiler — for_spec (the new For.Target field), block_spec (block-local slots), defined_spec (`defined?(a += 1)`) and variables_spec (*ast.SplatArg). They are consumer work, tracked separately; this commit is the bump alone. Co-Authored-By: Claude Opus 5 --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 7921bfb1..67927d0d 100644 --- a/go.mod +++ b/go.mod @@ -129,7 +129,7 @@ require ( github.com/go-ruby-pagy/pagy v0.0.0-20260707193354-a84fe1d16a86 github.com/go-ruby-paper-trail/paper-trail v0.0.0-20260707193452-4e10f2b4d0b3 github.com/go-ruby-parquet/parquet v0.0.0-20260704170648-c7f0507946f7 - github.com/go-ruby-parser/parser v0.1.9 + github.com/go-ruby-parser/parser v0.2.0 github.com/go-ruby-pathname/pathname v0.0.0-20260629151955-d8d2c4e5f81b github.com/go-ruby-pg/pg v0.0.0-20260702135906-e5650264cc5d github.com/go-ruby-prawn/prawn v0.0.0-20260728194101-a5f2d786bf88 diff --git a/go.sum b/go.sum index 17102e55..a36d4704 100644 --- a/go.sum +++ b/go.sum @@ -519,8 +519,8 @@ github.com/go-ruby-paper-trail/paper-trail v0.0.0-20260707193452-4e10f2b4d0b3 h1 github.com/go-ruby-paper-trail/paper-trail v0.0.0-20260707193452-4e10f2b4d0b3/go.mod h1:z370KNJcUH8n39yLdlT0Y1QvHukxjsq1XjGpIzvfqWE= github.com/go-ruby-parquet/parquet v0.0.0-20260704170648-c7f0507946f7 h1:kuL9coQlysvsIZXLzCfKZguDKvDwTibgJrLCx4jh5Ak= github.com/go-ruby-parquet/parquet v0.0.0-20260704170648-c7f0507946f7/go.mod h1:reJ/Dgyv5OWqVEERevwU1yX6N+CB5RfTQeGWGjmnOFo= -github.com/go-ruby-parser/parser v0.1.9 h1:q6fy2ReOop5rKej0HJHLQSFVC+ejerzpZ5ySvAXyhQU= -github.com/go-ruby-parser/parser v0.1.9/go.mod h1:NRbX4dYcQ6CgcaSaMmu1dh95QuKGq+RdenUoWU73214= +github.com/go-ruby-parser/parser v0.2.0 h1:YeTtK8BgYMbFXW4pRcfC4p6vjtnENWzg9oUFMsiMHkk= +github.com/go-ruby-parser/parser v0.2.0/go.mod h1:NRbX4dYcQ6CgcaSaMmu1dh95QuKGq+RdenUoWU73214= github.com/go-ruby-pathname/pathname v0.0.0-20260629151955-d8d2c4e5f81b h1:/ZN1eLOg0oH4wF8qmd6NOyB4ENYthx6wFwOpZiPhRIE= github.com/go-ruby-pathname/pathname v0.0.0-20260629151955-d8d2c4e5f81b/go.mod h1:IvW5q5Kyl5l3hrYwiHylOEmk5hpGSo7XqcmUXBHF5H0= github.com/go-ruby-pg/pg v0.0.0-20260702135906-e5650264cc5d h1:JKIZD+pJQ64/nla4DHdzMLnc4/v45MyYwnjACwS6dyM=