Skip to content

Allowed attributes for sentence types#3589

Merged
dwightguth merged 8 commits intodevelopfrom
allowedAtts
Aug 21, 2023
Merged

Allowed attributes for sentence types#3589
dwightguth merged 8 commits intodevelopfrom
allowedAtts

Conversation

@gtrepta
Copy link
Copy Markdown
Contributor

@gtrepta gtrepta commented Aug 18, 2023

for #3481

- Remove unused attributes on Array syntax declaration in domains.md

- Remove klabel attributes from rules in regression-new/issue-{1760,999}

- Allow comm attribute on rules. Some Set lemmas in domains.md are using it.

- Allow stream attribute for Productions generated from user defined IO cells
I guess this makes sense as it allows users to make productions that have strictness on them to have priorities.
@gtrepta gtrepta marked this pull request as ready for review August 19, 2023 00:57
final val PREC = Key.builtin("prec", KeyParameter.Required, onlyon[Production])
final val PREFER = Key.builtin("prefer", KeyParameter.Forbidden, onlyon[Production])
final val PRESERVES_DEFINEDNESS = Key.builtin("preserves-definedness", KeyParameter.Forbidden, onlyon[Rule])
final val PRIORITY = Key.builtin("priority", KeyParameter.Required, onlyon2[Production, Rule])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Any particular reason this was marked as allowed on productions?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, there's even a specific commit for this line. There's a k-exercise that has the priority attribute on a configuration declaration cell:

https://github.com/runtimeverification/k/actions/runs/5907674755/job/16025988153#step:7:368

This also made me figure that if strict or seqstrict are being used, then the user might want to control the priority on the rules that are generated there.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah I see. Okay. I'm approving this then.

@dwightguth dwightguth merged commit cc75c53 into develop Aug 21, 2023
@dwightguth dwightguth deleted the allowedAtts branch August 21, 2023 16:32
@Baltoli Baltoli mentioned this pull request Dec 12, 2023
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