summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-09-16 11:11:43 -0700
committerKaz Kylheku <kaz@kylheku.com>2012-09-16 11:11:43 -0700
commit04a89cc3d83a71b5c9b5df7088d2408e8f7b8a40 (patch)
treefbae8b38e6e6900ccb90c0e3769eef7af12eca57 /txr.1
parent80368daa62166345e31418d5fff72a5069801f2a (diff)
downloadtxr-04a89cc3d83a71b5c9b5df7088d2408e8f7b8a40.tar.gz
txr-04a89cc3d83a71b5c9b5df7088d2408e8f7b8a40.tar.bz2
txr-04a89cc3d83a71b5c9b5df7088d2408e8f7b8a40.zip
* parser.l: Implemented hexadecimal integer constants.
These will be very useful since bit operations are about to be implemented. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.114
1 files changed, 11 insertions, 3 deletions
diff --git a/txr.1 b/txr.1
index 5750d954..a641d91f 100644
--- a/txr.1
+++ b/txr.1
@@ -124,9 +124,10 @@ for a failed query, even if the program produced output.
Print the variable bindings in Lisp syntax instead of shell syntax.
.IP "-a num"
-Specifies the maximum number of array dimensions to use for variables
-arising out of collect. The default is 1. Additional dimensions are
-expressed using numeric suffixes in the generated variable names.
+The decimal integer argument specifies the maximum number of array dimensions
+to use for variables arising out of collect. The default is 1. Additional
+dimensions are expressed using numeric suffixes in the generated variable
+names.
For instance, consider the three-dimensional list arising out of a triply
nested collect: ((("a" "b") ("c" "d")) (("e" "f") ("g" "h"))).
Suppose this is bound to a variable V. With -a 1, this will be
@@ -1117,6 +1118,13 @@ Examples:
-0
+234483527304983792384729384723234
+An integer constant can also be specified in hexadecimal using the prefix
+#x followed by an optional sign, followed by hexadecimal digits: 0 through 9
+and the upper or lower case letters A through F:
+
+ #xFF ;; 255
+ #x-ABC ;; -2748
+
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