Skip to content

Fix ielr tests - #574

Merged
junk0612 merged 3 commits into
ruby:masterfrom
junk0612:fix-ielr-tests
Mar 2, 2025
Merged

Fix ielr tests#574
junk0612 merged 3 commits into
ruby:masterfrom
junk0612:fix-ielr-tests

Conversation

@junk0612

@junk0612 junk0612 commented Mar 1, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@junk0612
junk0612 force-pushed the fix-ielr-tests branch 5 times, most recently from 63c7b1f to dbbc2dc Compare March 1, 2025 15:30
Comment thread lib/lrama/states.rb Outdated
end

compute_inadequacy_annotations
# @states.each {|state| state.item_lookahead_set.tap { p _1.transform_keys(&:to_s) }.clear }

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it need to keep this commented out code?

Comment thread lib/lrama/states.rb Outdated
def compute_transition_bitmaps
nterm_transitions.map {|goto|
[goto, Bitmap.from_array(goto.to_state.transitions.map {|transition| transition.next_sym.number })]
[goto, Bitmap.from_array(goto.to_state.term_transitions.map {|transition| transition.next_sym.number })]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nits] It's better to use shift as block parameter instead of transition.

@junk0612

junk0612 commented Mar 2, 2025

Copy link
Copy Markdown
Collaborator Author

🙏 thanks for your review!

@junk0612
junk0612 merged commit 4377034 into ruby:master Mar 2, 2025
@junk0612
junk0612 deleted the fix-ielr-tests branch March 2, 2025 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants