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 printing of symbols of fixity #407

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

n-osborne
Copy link
Contributor

This PR proposes a fix of the way symbols with fixity are printed in Tterm_printer.print_term.

This is a first step towards a proprer pretty printer.

This also modifies how the fixity is encoded, proposing to store the information in a field of the identifiers with a sum type rather than in the name itself.

@n-osborne n-osborne force-pushed the fix-printing-fixity-symbols branch 2 times, most recently from af5b2fc to f6f245a Compare May 29, 2024 15:17
@n-osborne n-osborne force-pushed the fix-printing-fixity-symbols branch 4 times, most recently from d19fafc to 42137c8 Compare June 7, 2024 08:40
@n-osborne n-osborne force-pushed the fix-printing-fixity-symbols branch from 42137c8 to 4629e02 Compare July 11, 2024 15:59
Not updating tests as this commit breaks everything
This commit proposes support for partial and complete application of
infix symbols.
This commit proposes support for partial and complete application of
prefix symbols.
This commit proposes support for printing partial and complete
application of mixfix symbols. Note that there is no support for mixfix
symbols with an arity greater than the number of underscore + 1 as there
are no such mixfix symbols defined in Gospel and there is no way at the
moment for the user to defined new mixfix symbols.
@n-osborne n-osborne force-pushed the fix-printing-fixity-symbols branch from 4629e02 to 0a8ab9e Compare July 15, 2024 11:55
@n-osborne
Copy link
Contributor Author

Ready for review.

@n-osborne n-osborne mentioned this pull request Jul 18, 2024
@n-osborne
Copy link
Contributor Author

Need rebasing since Symbols.lsymbol has been changed by #420 (4a864b1)

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