Skip to content

Commit

Permalink
Merge pull request #162 from yui-knk/fix_initial_act_token_token_type
Browse files Browse the repository at this point in the history
Token type of C_DECLARATION is always `Token::User_code`
  • Loading branch information
yui-knk authored Oct 28, 2023
2 parents 9ec1aa6 + 6541c7f commit 09ecc3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/lrama/grammar/code_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
RSpec.describe Lrama::Grammar::Code do
let(:token_class) { Lrama::Lexer::Token }
let(:user_code_token) { token_class.new(type: token_class::User_code, s_value: "{ code 1 }") }
let(:initial_act_token) { token_class.new(type: token_class::P_initial_action, s_value: "%initial-action") }
let(:initial_act_token) { token_class.new(type: token_class::User_code, s_value: "%initial-action") }

describe "#translated_code" do
context "when the code type is :user_code" do
Expand Down

0 comments on commit 09ecc3a

Please sign in to comment.