aboutsummaryrefslogtreecommitdiff
path: root/doc/sphinx/language
diff options
context:
space:
mode:
authorPierre Roux2019-01-29 21:26:24 +0100
committerPierre Roux2019-04-02 00:02:33 +0200
commit6b9cb710545e1844c324979e27a04d9ddb52a924 (patch)
tree95bdbf29749461a409042fdee6f773fe58917eac /doc/sphinx/language
parent49c5de7ead9d008d91a63316e6037bcc9c1f1d52 (diff)
Update documentation
Diffstat (limited to 'doc/sphinx/language')
-rw-r--r--doc/sphinx/language/gallina-specification-language.rst11
1 files changed, 8 insertions, 3 deletions
diff --git a/doc/sphinx/language/gallina-specification-language.rst b/doc/sphinx/language/gallina-specification-language.rst
index 8a5e9d87f8..bb0a9fa1bd 100644
--- a/doc/sphinx/language/gallina-specification-language.rst
+++ b/doc/sphinx/language/gallina-specification-language.rst
@@ -74,14 +74,19 @@ Identifiers and access identifiers
`.` (dot) without blank. They are used in the syntax of qualified
identifiers.
-Natural numbers and integers
- Numerals are sequences of digits. Integers are numerals optionally
- preceded by a minus sign.
+Numerals
+ Numerals are sequences of digits with a potential fractional part
+ and exponent. Integers are numerals without fractional nor exponent
+ part and optionally preceded by a minus sign.
.. productionlist:: coq
digit : 0..9
num : `digit`…`digit`
integer : [-]`num`
+ dot : .
+ exp : e | E
+ sign : + | -
+ numeral : `num`[`dot` `num`][`exp`[`sign`]`num`]
Strings
Strings are delimited by ``"`` (double quote), and enclose a sequence of