-
Notifications
You must be signed in to change notification settings - Fork 152
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 warning for syntax priority / associativity mismatch #2710
Conversation
Grab location information here and make sure it's preserved in the frontend KORE (not the same as backend Kore) that is produced: https://github.com/runtimeverification/k/blob/master/kernel/src/main/java/org/kframework/kore/convertors/KILtoKORE.java#L141 KIL are the flat parsed data-structures produced by the frontend outer parser. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two minor issues.
k-distribution/tests/regression-new/syntax-groups/syntaxGroups.k
Outdated
Show resolved
Hide resolved
kernel/src/main/java/org/kframework/compile/checks/CheckSyntaxGroups.java
Outdated
Show resolved
Hide resolved
…untimeverification#2132) * haskell-backend/src/main/native/haskell-backend: 75be3ad5a - Update regression tests (runtimeverification#2803) * haskell-backend/src/main/native/haskell-backend: edd0ca2a1 - Fixing trim-source-paths.sh for macos (runtimeverification#2791) * haskell-backend/src/main/native/haskell-backend: 32ecb98c2 - `SideCondition.definedTerms`: check if AC terms are always defined before caching them (runtimeverification#2800) * haskell-backend/src/main/native/haskell-backend: 6394bf2d - Remove _PREDICATE sort (runtimeverification#2719) * haskell-backend/src/main/native/haskell-backend: fd8775cc - Check function definitions tool (runtimeverification#2710)
Fixes #2460
This PR adds a compiler check that the labels in a syntax associativity sentence are not in different priority groups, and updates the relevant sections of the K tutorial and user manual to reflect this.
Note that the error message doesn't have location information, because the
SyntaxAssociativity
sentence that I use in the check doesn't seem to include any - is there a better way to phrase this implementation?