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

Clean up lambda output from exyacc.rb #4778

Merged
merged 1 commit into from
Aug 26, 2021
Merged

Conversation

kddnewton
Copy link
Contributor

The lambda_body grammar rule has a "}", which is throwing off the exyacc.rb regular expressions. This changes the regular expression to account for "}" as well, which makes the output of ruby sample/exyacc.rb < parse.y change by the following diff:

632,634d631
< 		    ", &@3);
< 			$$ = $2;
< 		    }

Which makes it closer to a valid EBNF.

The `lambda_body` grammar rule has a `"}"`, which is throwing off the `exyacc.rb` regular expressions. This changes the regular expression to account for `"}"` as well, which makes the output of `ruby sample/exyacc.rb < parse.y` change by the following diff:

```diff
632,634d631
< 		    ", &@3);
< 			$$ = $2;
< 		    }
```

Which makes it closer to a valid EBNF.
@tenderlove tenderlove merged commit f4b8895 into ruby:master Aug 26, 2021
@kddnewton kddnewton deleted the exyacc branch November 3, 2023 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants