diff options
| author | herbelin | 2000-07-28 13:19:28 +0000 |
|---|---|---|
| committer | herbelin | 2000-07-28 13:19:28 +0000 |
| commit | 0aa70be388ced06a8471ff9e53408b2b9770f2f7 (patch) | |
| tree | bbab4c8316449dd5a5506d3af9a6034ea5b68f7e /theories/Init/SpecifSyntax.v | |
| parent | 503fc133279161abe87ff8329c630126b9b86e35 (diff) | |
Plus de piquants dans les actions des grammaires; nom de la grammaire pris comme parseur par defaut; le type List devient AstList
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@575 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories/Init/SpecifSyntax.v')
| -rw-r--r-- | theories/Init/SpecifSyntax.v | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/theories/Init/SpecifSyntax.v b/theories/Init/SpecifSyntax.v index 8b467fe13f..a3a69c3100 100644 --- a/theories/Init/SpecifSyntax.v +++ b/theories/Init/SpecifSyntax.v @@ -8,20 +8,21 @@ Require Export Specif. Grammar constr constr1 := sig [ "{" lconstr($lc) ":" lconstr($c1) "|" lconstr($c2) "}" ] - -> [<<(sig $c1 [$lc : $c1]$c2)>>] + -> [ (sig $c1 [$lc : $c1]$c2) ] | sig2 [ "{" lconstr($lc) ":" lconstr($c1) "|" lconstr($c2) "&" lconstr($c3) "}" ] - -> [<<(sig2 $c1 [$lc : $c1]$c2 [$lc : $c1]$c3)>>] + -> [ (sig2 $c1 [$lc : $c1]$c2 [$lc : $c1]$c3) ] | sigS [ "{" lconstr($lc) ":" lconstr($c1) "&" lconstr($c2) "}" ] - -> [<<(sigS $c1 [$lc : $c1]$c2)>>] + -> [ (sigS $c1 [$lc : $c1]$c2) ] | sigS2 [ "{" lconstr($lc) ":" lconstr($c1) "&" lconstr($c2) "&" lconstr($c3) "}" ] - -> [<<(sigS2 $c1 [$lc : $c1]$c2 [$lc : $c1]$c3)>>] + -> [ (sigS2 $c1 [$lc : $c1]$c2 [$lc : $c1]$c3) ]. -| squash [ "{" lconstr($lc) "}" ] -> [(SQUASH $lc)]. +Grammar constr constr1: Ast := + squash [ "{" lconstr($lc) "}" ] -> [(SQUASH $lc)]. Grammar constr lassoc_constr4 := squash_sum @@ -29,10 +30,10 @@ Grammar constr lassoc_constr4 := case [$c2] of (SQUASH $T2) -> case [$c1] of - (SQUASH $T1) -> [<<(sumbool $T1 $T2)>>] (* {T1}+{T2} *) - | $_ -> [<<(sumor $c1 $T2)>>] (* c1+{T2} *) + (SQUASH $T1) -> [ (sumbool $T1 $T2) ] (* {T1}+{T2} *) + | $_ -> [ (sumor $c1 $T2) ] (* c1+{T2} *) esac - | $_ -> [<<(sum $c1 $c2)>>] (* c1+c2 *) + | $_ -> [ (sum $c1 $c2) ] (* c1+c2 *) esac. (* Pretty-printing of things in Specif.v *) |
