diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-12-06 15:40:47 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-12-06 15:40:47 -0800 |
commit | 6f051c69587d159cafbb6bcf79ba245e8ca0d6c0 (patch) | |
tree | 9f32f483a41807787a4c6b864d65404de4fd043d /txr.1 | |
parent | 6cf90c4dc732318823adf7ec96e88e9e7772d4cf (diff) | |
download | txr-6f051c69587d159cafbb6bcf79ba245e8ca0d6c0.tar.gz txr-6f051c69587d159cafbb6bcf79ba245e8ca0d6c0.tar.bz2 txr-6f051c69587d159cafbb6bcf79ba245e8ca0d6c0.zip |
* eval.c (op_unwind_protect): Fixed uninitialized variable
warning.
(eval_init): New functions registered: typeof and vector functions,
as well as length_list.
* lib.c (length): Function renamed to length_list, because it is
list specific.
(length_vec, size_vec, vector_list): New functions.
(length): New function, generic over lists, vectors and strings.
* lib.h (length_list, length_vec, size_vec, vector_list): Declared.
* match.c (h_var, h_fun, robust_length, v_deffilter, v_fun): Use
length_list instead of length.
* parser.l: Introduced # token.
* parser.y (vector): New nonterminal.
(expr): vector is a kind of expr.
(chrlist): Bugfix: single-character syntax was not working;
for instance #\x to denote the charcter x.
(lit_char_helper): Use length_list instead of length.
* stream.c (string_in_get_line): Bugfix: this was using
the wrong length function: length was being applied to a string.
The genericity of length makes that correct now, but changing
to length_str anyway.
* txr.1: Blank sections created for functions. Vector syntax
documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 31 |
1 files changed, 30 insertions, 1 deletions
@@ -4269,6 +4269,13 @@ and not a quasiquote. .PP +.SS Vectors + +.IP #(...) + +A hash token followed by a list denotes a vector. For example #(1 2 a) +is a three-element vector containing the numbers 1 and 2, and the symbol a. + .SS Nested Quotes Quotes can be nested. What if it is necessary to unquote something in the @@ -4671,6 +4678,10 @@ Programs can define named functions with the defun operator The following are Lisp functions and variables built-in to TXR. +.SS Function identity + +.SS Function typeof + .SS Function cons .SS Functions car and first @@ -4695,7 +4706,7 @@ The following are Lisp functions and variables built-in to TXR. .SS Functions listp and proper-listp -.SS Function length +.SS Function length-list .SS Function mapcar @@ -4841,6 +4852,24 @@ The following are Lisp functions and variables built-in to TXR. .SS Function break-str +.SS Function vector + +.SS Function vec-get-fill + +.SS Function vec-set-fill + +.SS Function vecref + +.SS Function vec-push + +.SS Function length-vec + +.SS Function size-vec + +.SS Function vector-list + +.SS Function length + .SH APPENDIX A: NOTES ON EXOTIC REGULAR EXPRESSIONS |