Skip to content

Commit 6dd1851

Browse files
committed
Do not split term99
1 parent 177535b commit 6dd1851

File tree

4 files changed

+22
-19
lines changed

4 files changed

+22
-19
lines changed

doc/sphinx/language/core/basic.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ rest of the Rocq Prover manual: :term:`terms <term>` and :term:`types
262262
.. prodn::
263263
term ::= @term100
264264
term100 ::= @term_cast
265-
| @term10
265+
| @term99
266266
term10 ::= @term_application
267267
| @term_forall_or_fun
268268
| @term_let

doc/sphinx/language/core/definitions.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,26 @@ Type cast
4040
.. insertprodn term_cast term_cast
4141
4242
.. prodn::
43-
term_cast ::= @term10 <: @type
44-
| @term10 <<: @type
45-
| @term10 :> @type
46-
| @term10 : @type
43+
term_cast ::= @term99 <: @type
44+
| @term99 <<: @type
45+
| @term99 :> @type
46+
| @term99 : @type
4747
48-
The expression :n:`@term10 : @type` is a type cast expression. It enforces
49-
the type of :n:`@term10` to be :n:`@type`.
48+
The expression :n:`@term99 : @type` is a type cast expression. It enforces
49+
the type of :n:`@term99` to be :n:`@type`.
5050

51-
:n:`@term10 <: @type` specifies that the virtual machine will be used
52-
to type check that :n:`@term10` has type :n:`@type` (see :tacn:`vm_compute`).
51+
:n:`@term99 <: @type` specifies that the virtual machine will be used
52+
to type check that :n:`@term99` has type :n:`@type` (see :tacn:`vm_compute`).
5353

54-
:n:`@term10 <<: @type` specifies that compilation to OCaml will be used
55-
to type check that :n:`@term10` has type :n:`@type` (see :tacn:`native_compute`).
54+
:n:`@term99 <<: @type` specifies that compilation to OCaml will be used
55+
to type check that :n:`@term99` has type :n:`@type` (see :tacn:`native_compute`).
5656

57-
:n:`@term10 :> @type` enforces the type of :n:`@term10` to be
57+
:n:`@term99 :> @type` enforces the type of :n:`@term99` to be
5858
:n:`@type` without leaving a trace in the produced value.
5959
This is a :gdef:`volatile cast`.
6060

6161
If a scope is :ref:`bound <LocalInterpretationRulesForNotations>` to
62-
:n:`@type` then :n:`@term10` is interpreted in that scope.
62+
:n:`@type` then :n:`@term99` is interpreted in that scope.
6363

6464
.. _gallina-definitions:
6565

doc/tools/docgram/common.edit_mlg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2285,7 +2285,6 @@ SPLICE: [
22852285
| ltac_selector
22862286
| Constr.ident
22872287
| attribute_list
2288-
| term99
22892288
| term90
22902289
| term9
22912290
| term8

doc/tools/docgram/orderedGrammar

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ term: [
99

1010
term100: [
1111
| term_cast
12-
| term10
12+
| term99
1313
]
1414

1515
term10: [
@@ -419,10 +419,14 @@ term_generalizing: [
419419
]
420420

421421
term_cast: [
422-
| term10 "<:" type
423-
| term10 "<<:" type
424-
| term10 ":>" type
425-
| term10 ":" type
422+
| term99 "<:" type
423+
| term99 "<<:" type
424+
| term99 ":>" type
425+
| term99 ":" type
426+
]
427+
428+
term99: [
429+
| term10
426430
]
427431

428432
term_match: [

0 commit comments

Comments
 (0)