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

feat(#25): license rule #32

Merged
merged 1 commit into from
Oct 16, 2024
Merged

feat(#25): license rule #32

merged 1 commit into from
Oct 16, 2024

Conversation

h1alexbel
Copy link
Owner

@h1alexbel h1alexbel commented Oct 16, 2024

In this pull I've added license rule into program grammar in order to support license at the top of file.

closes #25


PR-Codex overview

This PR introduces support for license comments in the program structure and adds a test to ensure proper parsing of files that include a license.

Detailed summary

  • Added a license section to the program grammar in src/program.pest.
  • Created a new license rule to capture comments as licenses.
  • Implemented a test function parses_program_with_license in src/parser/fsl_parser.rs to verify parsing of with-license.fsl.
  • Updated resources/programs/with-license.fsl to include a sample license text.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

codecov bot commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (583c6de) to head (f814a09).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #32   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines           95        95           
=========================================
  Hits            95        95           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@h1alexbel
Copy link
Owner Author

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Oct 16, 2024

@rultor merge

@h1alexbel OK, I'll try to merge now. You can check the progress of the merge here.

@rultor rultor merged commit f814a09 into master Oct 16, 2024
13 checks passed
@h1alexbel h1alexbel deleted the 25 branch October 16, 2024 15:01
@rultor
Copy link
Collaborator

rultor commented Oct 16, 2024

@rultor merge

@h1alexbel Done! FYI, the full log is here (took me 7min).

@h1alexbel
Copy link
Owner Author

@rultor release, tag is 0.0.5

@rultor
Copy link
Collaborator

rultor commented Oct 16, 2024

@rultor release, tag is 0.0.5

@h1alexbel Invalid release tag 0.0.5 specified. There is already a release 0.0.5 newer than the given release in this repository.

@rultor
Copy link
Collaborator

rultor commented Oct 16, 2024

@rultor release, tag is 0.0.5

@h1alexbel I'm sorry, I don't understand you :( Check this page and try again please.

@h1alexbel
Copy link
Owner Author

@rultor release, tag is 0.0.6

@rultor
Copy link
Collaborator

rultor commented Oct 16, 2024

@rultor release, tag is 0.0.6

@h1alexbel OK, I will release it now. Please check the progress here.

@rultor
Copy link
Collaborator

rultor commented Oct 16, 2024

@rultor release, tag is 0.0.6

@h1alexbel Done! FYI, the full log is here (took me 7min).

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.

license support
2 participants