summary refs log tree commit diff stats
path: root/doc/astspec.txt
diff options
context:
space:
mode:
authorapense <apense@users.noreply.github.com>2015-06-26 01:16:56 -0400
committerapense <apense@users.noreply.github.com>2015-06-26 01:16:56 -0400
commit4198e88fb08daf49eb32c6bcc3674cccfe659921 (patch)
tree25cfa2fd7d1cce26124ceedb8d2b7756b9de6726 /doc/astspec.txt
parentafad61c220280ef6ab6362dc5cadbab8ab0b20fc (diff)
downloadNim-4198e88fb08daf49eb32c6bcc3674cccfe659921.tar.gz
Clarified nnkFloat64Lit
Fixes #2939
Diffstat (limited to 'doc/astspec.txt')
-rw-r--r--doc/astspec.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/astspec.txt b/doc/astspec.txt
index 9bedb00fc..9b14bc3b9 100644
--- a/doc/astspec.txt
+++ b/doc/astspec.txt
@@ -51,7 +51,8 @@ a child can never be nil.
 Leaf nodes/Atoms
 ================
 A leaf of the AST often corresponds to a terminal symbol in the concrete
-syntax.
+syntax. Note that the default ``float`` in Nim maps to ``float64`` such that
+the default AST for a float is ``nnkFloat64Lit`` as below.
 
 -----------------                ---------------------------------------------
 Nim expression                   Corresponding AST
@@ -65,7 +66,7 @@ Nim expression                   Corresponding AST
 ``42'u16``                       ``nnkUInt16Lit(intVal = 42)``
 ``42'u32``                       ``nnkUInt32Lit(intVal = 42)``
 ``42'u64``                       ``nnkUInt64Lit(intVal = 42)``
-``42.0``                         ``nnkFloatLit(floatVal = 42.0)``
+``42.0``                         ``nnkFloat64Lit(floatVal = 42.0)``
 ``42.0'f32``                     ``nnkFloat32Lit(floatVal = 42.0)``
 ``42.0'f64``                     ``nnkFloat64Lit(floatVal = 42.0)``
 ``"abc"``                        ``nnkStrLit(strVal = "abc")``