Skip to content

Bump go-ruby-parser to v0.1.7 (six syntax-robustness fixes, +341 examples) - #507

Merged
tannevaled merged 1 commit into
mainfrom
feat/parser-v0.1.6
Aug 30, 2026
Merged

tannevaled merged 1 commit into
mainfrom
feat/parser-v0.1.6

Conversation

@tannevaled

@tannevaled tannevaled commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

go-ruby-parser v0.1.6 + v0.1.7 accept six constructs MRI allows that the parser rejected, each of which made whole ruby/spec files fail to load:

  • return/break/next *ary — a splat jump value;
  • { |a,| } — a trailing comma in a block parameter list (single-arg destructuring);
  • cond ? next : x — a value-less control-flow jump as a ternary arm;
  • :$~ :$! :$-w :$1 — symbols naming the special / option / match-group globals;
  • C OP= x / A::B OP= x — compound assignment to a constant (||= guarded by defined?, so it defines an undefined constant, matching MRI);
  • **= — power-assignment (was lexed as ** then =).

Conformance: unblocks 13 previously unparseable spec files — language/{while,until,return,proc,next,break,assignments,…}, core/module/define_method, core/hash/each_pair, core/binding/local_variable_{get,set}, … — for +341 passing examples. go test ./... green, native + wasip1/wasm build. (The ruby/spec FLOOR is bumped in a single consolidating change once the parallel conformance PRs land.)

🤖 Generated with Claude Code

go-ruby-parser v0.1.6+v0.1.7 accept six constructs MRI allows that the
parser rejected, each of which made whole ruby/spec files fail to load:

  * `return/break/next *ary` — a splat jump value,
  * `{ |a,| }` — a trailing comma in a block parameter list,
  * `cond ? next : x` — a value-less jump as a ternary arm,
  * `:$~` `:$!` `:$-w` `:$1` — special / option / match-group global symbols,
  * `C OP= x` / `A::B OP= x` — compound assignment to a constant (`||=`
    guarded by defined? so it defines an undefined constant, as MRI does),
  * `**=` — power-assignment.

This unblocks 13 previously unparseable spec files for +341 passing
examples. go test ./... green, native + wasip1/wasm build.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tannevaled tannevaled changed the title Bump go-ruby-parser to v0.1.6 (four syntax-robustness fixes) Bump go-ruby-parser to v0.1.7 (six syntax-robustness fixes, +341 examples) Aug 30, 2026
@tannevaled
tannevaled merged commit aef31d4 into main Aug 30, 2026
7 checks passed
@tannevaled
tannevaled deleted the feat/parser-v0.1.6 branch August 30, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant