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

Fix Formatter #4682

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Fix Formatter #4682

wants to merge 2 commits into from

Conversation

tothtamas28
Copy link
Contributor

  • Change function add_backets to use bottom_up. This fixes an issue where the function does not recur on the items of a KSequence.
  • Add an artificial default bracket production. In case a term would require parentheses but there's no bracket production for its sort, this symbol will be applied. This emulates the following parametric production from module KSEQ:
    syntax {Sort} Sort ::= "(" Sort ")" [bracket, group(defaultBracket), applyPriority(1)]
    

@tothtamas28 tothtamas28 self-assigned this Nov 12, 2024
@tothtamas28 tothtamas28 marked this pull request as ready for review November 12, 2024 15:00
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.

1 participant