summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-02-24 08:03:59 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-02-24 19:17:30 -0800
commit501453a261771e2874bd065a78772e987616b14c (patch)
tree569029b676c1df641959e14528a0d28303593f5e /txr.1
parentfd795adb279719bf77a7a6333b1e97500c454964 (diff)
downloadtxr-501453a261771e2874bd065a78772e987616b14c.tar.gz
txr-501453a261771e2874bd065a78772e987616b14c.tar.bz2
txr-501453a261771e2874bd065a78772e987616b14c.zip
* parser.l: Support octal and binary numbers.
* txr.1: Documented. * genvim.txr, txr.vim: Updated.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.19
1 files changed, 9 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 0838a5c4..9195a2bd 100644
--- a/txr.1
+++ b/txr.1
@@ -1152,6 +1152,15 @@ and the upper or lower case letters A through F:
#xFF ;; 255
#x-ABC ;; -2748
+Similarly, octal numbers are supported with the prefix #o followed by
+octal digits:
+
+ #b777 ;; 511
+
+and binary numbers can be written with a #b prefix:
+
+ #b1110 ;; 14
+
A floating-point constant is marked by the inclusion of a decimal point, the
exponential "e notation", or both. It is an optional sign, followed
by a mantissa consisting of digits, a decimal point, more digits, and then an