]> matita.cs.unibo.it Git - helm.git/commit
Matitaweb:
authorWilmer Ricciotti <ricciott@cs.unibo.it>
Tue, 27 Mar 2012 12:23:00 +0000 (12:23 +0000)
committerWilmer Ricciotti <ricciott@cs.unibo.it>
Tue, 27 Mar 2012 12:23:00 +0000 (12:23 +0000)
commitc81b0e8dbfe80e2350e9322afa8316f39f98c3b3
tree8c4ba0e3010ef7cac11c75a22543ef9b842794e1
parent935c8d1b73726bb49b99e5c2dbebdea0d617fa1a
Matitaweb:

Improved support for notations enriched with hyperlinks.
This revision introduces a "ref" keyword which can be used in the lefthand side
of notation statements. "ref" can only be used to decorate literals (i.e.
symbols, numbers, or keywords). The syntax is as follows:

  LITERAL ::= SIMPLE_LITERAL
           |  ref CSYMBOL SIMPLE_LITERAL

For example, the notation

  ref 'cons [ list0 x sep ; ref 'nil ]

used as the compact notation for lists specifies that the `[' symbol will be
enriched with the interpretation of 'cons nodes of the AST, and the `]' symbol
with the interpretation of 'nil nodes of the AST.
18 files changed:
matitaB/components/content/notationEnv.ml
matitaB/components/content/notationEnv.mli
matitaB/components/content/notationPp.ml
matitaB/components/content/notationPt.ml
matitaB/components/content/notationUtil.ml
matitaB/components/content/notationUtil.mli
matitaB/components/content_pres/cicNotationLexer.ml
matitaB/components/content_pres/cicNotationParser.ml
matitaB/components/content_pres/cicNotationPres.ml
matitaB/components/content_pres/content2presMatcher.ml
matitaB/components/content_pres/termContentPres.ml
matitaB/components/content_pres/termContentPres.mli
matitaB/components/grafite_engine/grafiteEngine.ml
matitaB/components/ng_disambiguation/grafiteDisambiguate.ml
matitaB/components/ng_disambiguation/grafiteDisambiguate.mli
matitaB/matita/matitaEngine.ml
matitaB/matita/matitadaemon.ml
matitaB/matita/matitaweb.js