aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorherbelin2003-09-03 07:17:04 +0000
committerherbelin2003-09-03 07:17:04 +0000
commit71d22a0cfa99a3c28e59c97e2d3ae68b08c4c47a (patch)
tree4659139bd328e212b33c18cc573bdbe21dfeb1ba /dev
parent3da4f8b999b9f1f695cb497a323bd8f7fcb84c5f (diff)
*** empty log message ***
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4297 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'dev')
-rw-r--r--dev/translate.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev/translate.txt b/dev/translate.txt
index 1db8e6212a..f74f8fc8d5 100644
--- a/dev/translate.txt
+++ b/dev/translate.txt
@@ -34,6 +34,28 @@ II) Notations
Grammar (on constr) and Syntax are no longer supported. Replace them by
Notation before translation.
+ Precedence levels are now from 0 to 250. Typical level are:
+
+ /\ : 60
+ \/ : 70
+ <-> : 80
+ ~ : 50
+ =, <=, >=, <> : 50
+ +, - : 40
+ *, / : 30
+
+ The new scale can induce incompatibilities. To set the level an
+operator should have after translation, use the V8only modifier of
+Infix or Notation in the v7 file, as e.g.:
+
+ Infix 6 "<=" le V8only 50.
+ Notation "( x , y )" := (pair ? ? x y) V8only "x , y" (at level 0).
+ Infix 3 "*" mult : nat_scope V8only (left associativity).
+
+ The default for precedence is to multiply the level by 10. Notice
+that you can change not only the precedence but also the
+associativity and the syntax itself.
+
III) Main examples for new syntax
----------------------------