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 xsl to check for negative binding indexes #2675

Merged
merged 6 commits into from
Dec 6, 2023

Conversation

c71n93
Copy link
Member

@c71n93 c71n93 commented Dec 5, 2023

Closes #2670


PR-Codex overview

This PR focuses on adding a new XSL transformation to check if integer bindings in EO applications are negative.

Detailed summary

  • Added signed-binding-indexes.xsl to check for negative integer bindings in EO applications.
  • Modified ParsingTrain.java to include a TODO comment about checking negative int bindings via XSL.

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

@c71n93
Copy link
Member Author

c71n93 commented Dec 5, 2023

@maxonfjvipon could you check this one, please?

Copy link
Member

@maxonfjvipon maxonfjvipon left a comment

Choose a reason for hiding this comment

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

@c71n93 well done. Just a several comments from my side

<xsl:attribute name="severity">
<xsl:text>error</xsl:text>
</xsl:attribute>
<xsl:text>Binding index of application must not be a negative number "</xsl:text>
Copy link
Member

Choose a reason for hiding this comment

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

@c71n93 I think not only negative but positive with + too

Copy link
Member Author

Choose a reason for hiding this comment

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

tests:
- /program/errors[count(error[@severity='error'])=2]
eo: |
object c:-1 d:-2 a:0 b:1
Copy link
Member

Choose a reason for hiding this comment

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

@c71n93 let's add a case with index with +

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

@maxonfjvipon maxonfjvipon left a comment

Choose a reason for hiding this comment

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

@c71n93 LGTM! Thanks

@c71n93
Copy link
Member Author

c71n93 commented Dec 6, 2023

@yegor256 could you check this one, please?

@yegor256
Copy link
Member

yegor256 commented Dec 6, 2023

@rultor merge

@rultor
Copy link
Contributor

rultor commented Dec 6, 2023

@rultor merge

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

@rultor rultor merged commit 1c8472b into objectionary:master Dec 6, 2023
11 checks passed
@rultor
Copy link
Contributor

rultor commented Dec 6, 2023

@rultor merge

@yegor256 Done! FYI, the full log is here (took me 21min)

@c71n93 c71n93 deleted the 2670-fix-negative-indexes branch March 20, 2024 14:21
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.

ParsingTrain.java:46-48: Check negative int bindings via...
4 participants