]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_disambiguation/doc/precedence.txt
added rule to generate camlp4 expansion of cicNotationParser.ml (in order
[helm.git] / helm / ocaml / cic_disambiguation / doc / precedence.txt
index 82e8d4ade3c431eada834f3b5ac9e8d4e1f6707a..f0a91418d3f64c24a3861a23a14eaa5e68a071d9 100644 (file)
@@ -2,11 +2,15 @@
 Input                  Should be parsed as             Derived constraint
                                                        on precedence
 --------------------------------------------------------------------------------
-\lambda x.x y          ((\lambda x.x) y)               binder > apply
+\lambda x.x y          ((\lambda x.x) y)               lambda > apply
 S x = y                  (= (S x) y)                   apply  > infix operators
+\forall x.x=x         (\forall x.(= x x))             infix operators > binders
+\lambda x.x \to x    \lambda. (x \to x)                \to > \lambda
 --------------------------------------------------------------------------------
 
 Precedence total order:
 
-  binder > apply > infix operators
+  \to > lambda > apply > infix operators > binders
+
+where binders are all binders except lambda (i.e. \forall, \pi, \exists)