Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ripper DSL improvement #10766

Merged
merged 16 commits into from May 21, 2024
Merged

Ripper DSL improvement #10766

merged 16 commits into from May 21, 2024

Conversation

nobu
Copy link
Member

@nobu nobu commented May 12, 2024

  • Make $:n to refer each grammar values
    Ripper DSL uses these values for callbacks, but does not need indexes.
  • Support [$:n, ...] which enclose values in an array.
  • Support indexing $:n[i] and sub-array $:n[i..j] to splat.
    Since Ripper does not know the length, it needs to index with a range to tell the length.
  • Remove rb_ripper_none object.

@nobu nobu requested a review from yui-knk May 12, 2024 12:26

This comment has been minimized.

@matzbot matzbot merged commit c773453 into ruby:master May 21, 2024
100 checks passed
@nobu nobu deleted the ripper-dsl-improve branch May 21, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants