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 Jun 11, 2024
1 parent 9a75458 commit 84059b4
Show file tree
Hide file tree
Showing 5 changed files with 256 additions and 184 deletions.
Loading

0 comments on commit 84059b4

Please sign in to comment.