Skip to content

Commit

Permalink
Merge pull request ruby#225 from yui-knk/resolve_conflicts
Browse files Browse the repository at this point in the history
Resolve S/R conflicts
  • Loading branch information
yui-knk authored Nov 13, 2023
2 parents 0c855fe + 395f70e commit ffc2fb3
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 101 deletions.
196 changes: 98 additions & 98 deletions lib/lrama/parser.rb

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

6 changes: 3 additions & 3 deletions parser.y
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Lrama::Parser
expect 7
expect 1

token C_DECLARATION CHARACTER IDENT_COLON IDENTIFIER INTEGER STRING TAG

Expand Down Expand Up @@ -261,9 +261,9 @@ rule
{
result = [{tag: val[0], tokens: val[1]}]
}
| token_declarations_for_precedence token_declaration_list_for_precedence
| token_declarations_for_precedence TAG token_declaration_list_for_precedence
{
result = val[0].append({tag: nil, tokens: val[1]})
result = val[0].append({tag: val[1], tokens: val[2]})
}

token_declaration_list_for_precedence: token_declaration_for_precedence { result = [val[0]] }
Expand Down

0 comments on commit ffc2fb3

Please sign in to comment.