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

Bug/598 evaluate expressions facts #602

Merged
merged 4 commits into from
Jan 27, 2025
Merged

Conversation

aannleax
Copy link
Member

The problem was that the validate method of Fact was not triggered before, because Facts used the TranslationComponent implementation for HeadAtom. This PR adds such an implementation for Fact itself, which then also calls validate. Furthermore, this PR adds some related error messages to the validation of facts. Finally, constant expressions appearing in facts are now evaluated.

Closes #598.

@aannleax aannleax added this to the Release 0.8.0 milestone Jan 22, 2025
Copy link
Member

@monsterkrampe monsterkrampe left a comment

Choose a reason for hiding this comment

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

LGTM except for the println :D

@aannleax aannleax force-pushed the bug/598-evaluate-expressions-facts branch from 26c7b50 to ffdc345 Compare January 27, 2025 08:18
Copy link
Member

@monsterkrampe monsterkrampe left a comment

Choose a reason for hiding this comment

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

👍

@aannleax aannleax merged commit f467faa into main Jan 27, 2025
8 checks passed
@aannleax aannleax deleted the bug/598-evaluate-expressions-facts branch January 27, 2025 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Crash when using expressions in facts
2 participants