Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
yui-knk committed Mar 24, 2024
1 parent 2916940 commit c4bc0d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Typed Midrule Actions

User can specify the type of mid rule action by tag (`<bar>`) instead of specifing it with in an action.
User can specify the type of mid rule action by tag (`<bar>`) instead of specifying it with in an action.

```
primary: k_case expr_value terms?
Expand Down
2 changes: 1 addition & 1 deletion spec/lrama/grammar/code_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
expect(code.translated_code).to eq(" (yyvsp[-3].expr) + (yyvsp[0].integer); ")
end

it "uses an explict tag for type casting" do
it "uses an explicit tag for type casting" do
# midrule action in rule13
code = grammar.rules.find {|r| r.lhs.id.s_value == "@5" }
expect(code.translated_code).to eq(" (yyval.integer) = (yyvsp[-1].expr); (yyloc) = (yylsp[-1]); ")
Expand Down

0 comments on commit c4bc0d2

Please sign in to comment.