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 26, 2024
1 parent caa982c commit b9c69de
Show file tree
Hide file tree
Showing 5 changed files with 260 additions and 188 deletions.
Loading

0 comments on commit b9c69de

Please sign in to comment.