Repository navigation
Bump go-ruby-parser to v0.1.7 (six syntax-robustness fixes, +341 examples) - #507
Merged
Merged
Conversation
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
force-pushed
the
feat/parser-v0.1.6
branch
from
August 30, 2026 13:44
7a87c69 to
369618e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 bydefined?, 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/wasmbuild. (The ruby/specFLOORis bumped in a single consolidating change once the parallel conformance PRs land.)🤖 Generated with Claude Code