Skip to content

Commit

Permalink
Widen the definable position of parameterizing rules
Browse files Browse the repository at this point in the history
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
                     ;
```
  • Loading branch information
ydah committed May 17, 2024
1 parent 95e0cc2 commit f358bde
Show file tree
Hide file tree
Showing 5 changed files with 252 additions and 180 deletions.
Loading

0 comments on commit f358bde

Please sign in to comment.