Skip to content

Commit

Permalink
Allow symbol for parameterizing_suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
yui-knk committed Jan 6, 2024
1 parent a5c151b commit 566a0a5
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 57 deletions.
112 changes: 56 additions & 56 deletions 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 @@ -241,7 +241,7 @@ rule
builder.symbols << token
result = builder
}
| rule_rhs IDENTIFIER parameterizing_suffix
| rule_rhs symbol parameterizing_suffix
{
builder = val[0]
builder.symbols << Lrama::Lexer::Token::InstantiateRule.new(s_value: val[2], location: @lexer.location, args: [val[1]])
Expand Down

0 comments on commit 566a0a5

Please sign in to comment.