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

Widen the definable position of parameterizing rules #420

Merged
merged 1 commit into from
Jun 29, 2024

Commits on Jun 26, 2024

  1. Widen the definable position of parameterizing rules

    We came to this decision after discussion at RubyKaigi 2024.
    Definitions are also possible in the following positions:
    
    ```
    %rule defined_option(X): /* empty */
                           | X
                           ;
    
    %%
    
    program         : defined_option(number) <i>
                    | defined_list(number) <i>
                    ;
    
    %rule defined_list(X): /* empty */  /* <--- here */
                         | defined_list(X) number
                         ;
    ```
    ydah committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    b9c69de View commit details
    Browse the repository at this point in the history