-
Notifications
You must be signed in to change notification settings - Fork 643
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
only parsing notations should not disable the printing of other notations defined after them #7443
Labels
part: notations
The notation system.
Milestone
Comments
JasonGross
changed the title
(only parsing) notations should not disable the printing of other notations defined after them
only parsing notations should not disable the printing of other notations defined after them
May 6, 2018
Your guess is right. What to do is a bit unclear (comparing tactic code would be a bit difficult with locations, arbitrary generic arguments, ...). Maybe assuming that two tactics always differ by default, even if exactly the same)? |
3 tasks
herbelin
added a commit
to herbelin/github-coq
that referenced
this issue
Aug 31, 2020
…notations. The (old) original model for notations was to associated both a parsing and a printing rule to a notation. Progressively, it was more and more common to have only parsing notations or even multiple expressions printed with the same notation. The new model is to attach to a given scope, string and entry at most one either only-parsing or mixed-parsing-printing rules + an arbitrarily many unrelated only-printing rules. Additionally, we anticipate the ability to selectively activate/deactivate each of those. This allows to fix in particular coq#9682 and coq#10824 but also to have more-to-the-point warnings in case a notation overrides or partially overrides another one We also improve the output of "Print Scopes" so that it adds when a notation is only-parsing, only-printing, or deactivated, or a combination of those. Fixes coq#9682 Fixes coq#10824 Fixes part 2 of coq#12908 Fixes coq#7443 (up to accepting that only-parsing cancels a previous parsing+printing notation) Fixes coq#4738
herbelin
added a commit
to herbelin/github-coq
that referenced
this issue
Sep 4, 2020
…notations. The (old) original model for notations was to associated both a parsing and a printing rule to a notation. Progressively, it was more and more common to have only parsing notations or even multiple expressions printed with the same notation. The new model is to attach to a given scope, string and entry at most one either only-parsing or mixed-parsing-printing rules + an arbitrarily many unrelated only-printing rules. Additionally, we anticipate the ability to selectively activate/deactivate each of those. This allows to fix in particular coq#9682 and coq#10824 but also to have more-to-the-point warnings in case a notation overrides or partially overrides another one We also improve the output of "Print Scopes" so that it adds when a notation is only-parsing, only-printing, or deactivated, or a combination of those. Fixes coq#9682 Fixes coq#10824 Fixes part 2 of coq#12908 Fixes coq#7443 (up to accepting that only-parsing cancels a previous parsing+printing notation) Fixes coq#4738
3 tasks
herbelin
added a commit
to herbelin/github-coq
that referenced
this issue
Sep 26, 2020
…notations. The (old) original model for notations was to associated both a parsing and a printing rule to a notation. Progressively, it was more and more common to have only parsing notations or even multiple expressions printed with the same notation. The new model is to attach to a given scope, string and entry at most one either only-parsing or mixed-parsing-printing rules + an arbitrarily many unrelated only-printing rules. Additionally, we anticipate the ability to selectively activate/deactivate each of those. This allows to fix in particular coq#9682 and coq#10824 but also to have more-to-the-point warnings in case a notation overrides or partially overrides another one We also improve the output of "Print Scopes" so that it adds when a notation is only-parsing, only-printing, or deactivated, or a combination of those. Fixes coq#9682 Fixes coq#10824 Fixes part 2 of coq#12908 Fixes coq#7443 (up to accepting that only-parsing cancels a previous parsing+printing notation) Fixes coq#4738
herbelin
added a commit
to herbelin/github-coq
that referenced
this issue
Sep 29, 2020
…notations. The (old) original model for notations was to associated both a parsing and a printing rule to a notation. Progressively, it was more and more common to have only parsing notations or even multiple expressions printed with the same notation. The new model is to attach to a given scope, string and entry at most one either only-parsing or mixed-parsing-printing rules + an arbitrarily many unrelated only-printing rules. Additionally, we anticipate the ability to selectively activate/deactivate each of those. This allows to fix in particular coq#9682 and coq#10824 but also to have more-to-the-point warnings in case a notation overrides or partially overrides another one We also improve the output of "Print Scopes" so that it adds when a notation is only-parsing, only-printing, or deactivated, or a combination of those. Fixes coq#9682 Fixes coq#10824 Fixes part 2 of coq#12908 Fixes coq#7443 (up to accepting that only-parsing cancels a previous parsing+printing notation) Fixes coq#4738
herbelin
added a commit
to herbelin/github-coq
that referenced
this issue
Oct 4, 2020
…notations. The (old) original model for notations was to associated both a parsing and a printing rule to a notation. Progressively, it was more and more common to have only parsing notations or even multiple expressions printed with the same notation. The new model is to attach to a given scope, string and entry at most one either only-parsing or mixed-parsing-printing rules + an arbitrarily many unrelated only-printing rules. Additionally, we anticipate the ability to selectively activate/deactivate each of those. This allows to fix in particular coq#9682 and coq#10824 but also to have more-to-the-point warnings in case a notation overrides or partially overrides another one We also improve the output of "Print Scopes" so that it adds when a notation is only-parsing, only-printing, or deactivated, or a combination of those. Fixes coq#9682 Fixes coq#10824 Fixes part 2 of coq#12908 Fixes coq#7443 (up to accepting that only-parsing cancels a previous parsing+printing notation) Fixes coq#4738
herbelin
added a commit
to herbelin/github-coq
that referenced
this issue
Oct 6, 2020
…notations. The (old) original model for notations was to associated both a parsing and a printing rule to a notation. Progressively, it was more and more common to have only parsing notations or even multiple expressions printed with the same notation. The new model is to attach to a given scope, string and entry at most one either only-parsing or mixed-parsing-printing rules + an arbitrarily many unrelated only-printing rules. Additionally, we anticipate the ability to selectively activate/deactivate each of those. This allows to fix in particular coq#9682 and coq#10824 but also to have more-to-the-point warnings in case a notation overrides or partially overrides another one We also improve the output of "Print Scopes" so that it adds when a notation is only-parsing, only-printing, or deactivated, or a combination of those. Fixes coq#9682 Fixes coq#10824 Fixes part 2 of coq#12908 Fixes coq#7443 (up to accepting that only-parsing cancels a previous parsing+printing notation) Fixes coq#4738
herbelin
added a commit
to herbelin/github-coq
that referenced
this issue
Oct 6, 2020
…notations. The (old) original model for notations was to associated both a parsing and a printing rule to a notation. Progressively, it was more and more common to have only parsing notations or even multiple expressions printed with the same notation. The new model is to attach to a given scope, string and entry at most one either only-parsing or mixed-parsing-printing rules + an arbitrarily many unrelated only-printing rules. Additionally, we anticipate the ability to selectively activate/deactivate each of those. This allows to fix in particular coq#9682 and coq#10824 but also to have more-to-the-point warnings in case a notation overrides or partially overrides another one We also improve the output of "Print Scopes" so that it adds when a notation is only-parsing, only-printing, or deactivated, or a combination of those. Fixes coq#9682 Fixes coq#10824 Fixes part 2 of coq#12908 Fixes coq#7443 (up to accepting that only-parsing cancels a previous parsing+printing notation) Fixes coq#4738
herbelin
added a commit
to herbelin/github-coq
that referenced
this issue
Oct 9, 2020
…notations. The (old) original model for notations was to associated both a parsing and a printing rule to a notation. Progressively, it was more and more common to have only parsing notations or even multiple expressions printed with the same notation. The new model is to attach to a given scope, string and entry at most one either only-parsing or mixed-parsing-printing rules + an arbitrarily many unrelated only-printing rules. Additionally, we anticipate the ability to selectively activate/deactivate each of those. This allows to fix in particular coq#9682 and coq#10824 but also to have more-to-the-point warnings in case a notation overrides or partially overrides another one We also improve the output of "Print Scopes" so that it adds when a notation is only-parsing, only-printing, or deactivated, or a combination of those. Fixes coq#9682 Fixes coq#10824 Fixes part 2 of coq#12908 Fixes coq#7443 (up to accepting that only-parsing cancels a previous parsing+printing notation) Fixes coq#4738
herbelin
added a commit
to herbelin/github-coq
that referenced
this issue
Oct 9, 2020
…notations. The (old) original model for notations was to associated both a parsing and a printing rule to a notation. Progressively, it was more and more common to have only parsing notations or even multiple expressions printed with the same notation. The new model is to attach to a given scope, string and entry at most one either only-parsing or mixed-parsing-printing rules + an arbitrarily many unrelated only-printing rules. Additionally, we anticipate the ability to selectively activate/deactivate each of those. This allows to fix in particular coq#9682 and coq#10824 but also to have more-to-the-point warnings in case a notation overrides or partially overrides another one We also improve the output of "Print Scopes" so that it adds when a notation is only-parsing, only-printing, or deactivated, or a combination of those. Fixes coq#9682 Fixes coq#10824 Fixes part 2 of coq#12908 Fixes coq#7443 (up to accepting that only-parsing cancels a previous parsing+printing notation) Fixes coq#4738
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
8.8.0 (present as far back as 8.5, though)
Description of the problem
Consider this code:
There are two issues here:
My guess is that the notation system is incorrectly considering
_
andltac:(...)
to be equal when deciding whether or not, and how, to overwrite a notation with another?cc @herbelin
The text was updated successfully, but these errors were encountered: