aboutsummaryrefslogtreecommitdiff
path: root/doc/sphinx/language
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2019-04-05 01:28:47 +0200
committerEmilio Jesus Gallego Arias2019-04-05 01:28:47 +0200
commitbe6f3a6234ee809dd3c290621d80c3280a41355e (patch)
tree8fed697f726193b765c8a2faeedd34ad60b541cb /doc/sphinx/language
parent2e1aa5c15ad524cffd03c7979992af44ab2bb715 (diff)
parent6af420bb384af0acf94028fc44ef44fd5a6fd841 (diff)
Merge PR #8764: Add parsing of decimal constants (e.g., 1.02e+01)
Reviewed-by: Zimmi48 Reviewed-by: ejgallego Ack-by: gares Ack-by: herbelin Ack-by: ppedrot Ack-by: proux01
Diffstat (limited to 'doc/sphinx/language')
-rw-r--r--doc/sphinx/language/gallina-specification-language.rst12
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/sphinx/language/gallina-specification-language.rst b/doc/sphinx/language/gallina-specification-language.rst
index 8a5e9d87f8..5a1af9f9fa 100644
--- a/doc/sphinx/language/gallina-specification-language.rst
+++ b/doc/sphinx/language/gallina-specification-language.rst
@@ -74,14 +74,20 @@ 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. Underscores ``_`` can
+ be used as comments in numerals.
.. 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