Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] displaying the level of a notation

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] displaying the level of a notation


Chronological Thread 
  • From: Hugo Herbelin <Hugo.Herbelin AT inria.fr>
  • To: Michael Shulman <shulman AT sandiego.edu>
  • Cc: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] displaying the level of a notation
  • Date: Fri, 20 Nov 2015 09:06:57 +0100

Hi,

On Wed, Nov 18, 2015 at 09:14:22AM -0800, Michael Shulman wrote:
> Is there a command to display the level of a particular notation?

I don't think so.

> So far the only ways I have found to figure out the level of a
> notation are to try to track down the source file where the notation
> was declared, or to "Print Grammar constr" and search through the (not
> very user-friendly) output for the notation in question.

I think so.

> "Locate" shows what a notation is defined to mean, but not its level.

Indeed, Locate could also show the level. Here are entry points if
ever someone is willing to submit such a refinement of Locate as a
pull request: in source code, looking at Notation.locate_notation;
parsing/printing data including level should be obtainable from
Notation.find_notation_printing_rule.

Best,

Hugo



Archive powered by MHonArc 2.6.18.

Top of Page