Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support --report=terms option #439

Merged
merged 1 commit into from
Jun 9, 2024

Conversation

S-H-GAMELINKS
Copy link
Contributor

Add report_unused_terms private method to Lrama::StatesReporter for TODO Unused terms in lib/lrama/states_report.rb
However, I am not sure if the output format is what it is supposed to be, so I would appreciate your comments if it is different.

Copy link
Collaborator

@ydah ydah left a comment

Choose a reason for hiding this comment

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

Thank you! This is a very useful reporting feature!
I think the implementation is good. However, isn't it not possible to execute it as a command since there is no term option?

BISON_REPORTS = %w[states itemsets lookaheads solved counterexamples cex all none]
OTHER_REPORTS = %w[verbose]
NOT_SUPPORTED_REPORTS = %w[cex none]
VALID_REPORTS = BISON_REPORTS + OTHER_REPORTS - NOT_SUPPORTED_REPORTS

@S-H-GAMELINKS S-H-GAMELINKS force-pushed the add-unused-term-report branch from 2745b77 to d2b1d5c Compare June 8, 2024 09:13
@S-H-GAMELINKS
Copy link
Contributor Author

Certainly, I had forgotten about the part about passing in terms option for command.
So I commited and force-pushed that implemented passing terms option for command.

lib/lrama/option_parser.rb Outdated Show resolved Hide resolved
@S-H-GAMELINKS S-H-GAMELINKS force-pushed the add-unused-term-report branch from d2b1d5c to c81d0ed Compare June 9, 2024 02:12
Copy link
Collaborator

@ydah ydah left a comment

Choose a reason for hiding this comment

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

Looks fine! Thank you!

@ydah
Copy link
Collaborator

ydah commented Jun 9, 2024

@S-H-GAMELINKS Ah, sorry. Could you change the title of the commit message and PR to say that you have added support for the --report=terms option?

@S-H-GAMELINKS S-H-GAMELINKS force-pushed the add-unused-term-report branch from c81d0ed to 28b1eb3 Compare June 9, 2024 06:06
@S-H-GAMELINKS S-H-GAMELINKS changed the title Add report_unused_terms private method Add support --report=terms option Jun 9, 2024
@S-H-GAMELINKS
Copy link
Contributor Author

OK, I have rewritten PR titile and commit message.

Copy link
Collaborator

@ydah ydah left a comment

Choose a reason for hiding this comment

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

Thank you!

@ydah ydah merged commit e087c5a into ruby:master Jun 9, 2024
16 checks passed
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