diff options
| author | herbelin | 2003-09-22 17:09:37 +0000 |
|---|---|---|
| committer | herbelin | 2003-09-22 17:09:37 +0000 |
| commit | b6227b96055836b8d0c78d918d67adf4f647e626 (patch) | |
| tree | 286f6016fef99694318cf267b87d96be4cdefed1 /dev | |
| parent | 9c3f02a3a1f3e7ca96c5de44f3d4142268c9d96c (diff) | |
MAJ
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4448 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/translate.txt | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/dev/translate.txt b/dev/translate.txt index 6017f39d4a..9dfe9ca1bb 100644 --- a/dev/translate.txt +++ b/dev/translate.txt @@ -47,16 +47,28 @@ associativity of an operator cannot be redefined. Typical level are: 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 (V8only not supported for Distfix, +Infix or Notation in the v7 file (V8only is not supported for Distfix, use Notation instead), as e.g.: - Infix 6 "<=" le V8only 50. + Infix 6 "<=" le V8only (at level 50, no associativity). Notation "( x , y )" := (pair ? ? x y) V8only "x , y" (at level 0). - Infix 3 "*" mult : nat_scope V8only (left associativity). + Infix 3 "*" mult : nat_scope V8only (at level 30, 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. + The semantics of V8only is: + + - Without V8only, the associativity is as for V7 and the levels are + the V7 levels scaled by 10. + + - If the syntactic parameters of the notation are already defined + (e.g. in theories/Init/Notations.v), then the V8only keyword alone + means that the levels and associativity will be inherited from the + reserved ones for this syntax. No levels and associativity will be + mentioned in the v8 files. + + - Otherwise, both associativity and levels must be mentioned after + the V8only keyword + + Notice that you can also change the syntax itself. III) Main examples for new syntax ---------------------------- |
