]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/contribs/procedural/Coq/Num/NSyntax.mma
transcript: we improved the parser/lexer to read the scripts of the standard
[helm.git] / helm / software / matita / contribs / procedural / Coq / Num / NSyntax.mma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 (* This file was automatically generated: do not edit *********************)
16
17 include "Coq.ma".
18
19 (*#**********************************************************************)
20
21 (*  v      *   The Coq Proof Assistant  /  The Coq Development Team    *)
22
23 (* <O___,, *        INRIA-Rocquencourt  &  LRI-CNRS-Orsay              *)
24
25 (*   \VV/  *************************************************************)
26
27 (*    //   *      This file is distributed under the terms of the      *)
28
29 (*         *       GNU Lesser General Public License Version 2.1       *)
30
31 (*#**********************************************************************)
32
33 (*#* Syntax for arithmetic *)
34
35 include "Num/Params.ma".
36
37 (* NOTATION
38 Infix 6 "<" lt V8only 70.
39 *)
40
41 (* NOTATION
42 Infix 6 "<=" le V8only 70.
43 *)
44
45 (* NOTATION
46 Infix 6 ">" gt V8only 70.
47 *)
48
49 (* NOTATION
50 Infix 6 ">=" ge V8only 70.
51 *)
52
53 (*i Infix 7 "+" plus V8only 50. i*)
54
55 (* NOTATION
56 Grammar constr lassoc_constr4 :=
57   squash_sum
58   [ lassoc_constr4($c1) "+" lassoc_constr4($c2) ] ->
59       case [$c2] of
60         (SQUASH $T2) ->
61             case [$c1] of
62               (SQUASH $T1) -> [ (sumbool $T1 $T2) ] (* {T1}+{T2} *)
63             | $_           -> [ (sumor $c1 $T2) ]   (* c1+{T2} *)
64             esac
65       | $_           -> [ (add $c1 $c2) ]           (* c1+c2 *)
66       esac.
67 *)
68
69 (* NOTATION
70 Syntax constr
71   level 4:
72     sum [ (add $t1 $t2) ] -> [ [<hov 0> $t1:E [0 1] "+" $t2:L ] ]
73 .
74 *)
75