Skip to content

Commit

Permalink
Merge pull request #154 from yui-knk/refactor_parser
Browse files Browse the repository at this point in the history
Use named variable instead of `val`
  • Loading branch information
yui-knk authored Oct 24, 2023
2 parents cbaf6cb + 451e4cd commit 5072479
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/lrama/parser.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ rule
| rhs symbol named_ref_opt
{
token = val[1]
val[1].alias = val[2]
token.alias = val[2]
result = val[0].append(token)
}
| rhs "{"
Expand Down

0 comments on commit 5072479

Please sign in to comment.