diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-06-12 21:17:20 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-06-12 21:17:20 -0700 |
commit | 034799fc0288388d08dcfbcf6230cb698942ba69 (patch) | |
tree | f0f3b487ea4e41dc67e01ccce735ee17e9a322c6 /stdlib/doc-syms.tl | |
parent | f2efe6c4cd019bea22717ac73734adb83e9176d5 (diff) | |
download | txr-034799fc0288388d08dcfbcf6230cb698942ba69.tar.gz txr-034799fc0288388d08dcfbcf6230cb698942ba69.tar.bz2 txr-034799fc0288388d08dcfbcf6230cb698942ba69.zip |
New @(push) directive.
@(push) is like @(output), but feeds back into input.
Use carefully.
* parser.y (PUSH): New token.
(output_push): New nonterminal symbol.
(output_clause): Handle OUTPUT or PUSH via output_push.
Some logic moved to output_helper.
(output_helper): New function. Transforms both @(output)
and @(push) directives. Checks both for valid keywords;
push has only :filter.
* parser.l (grammar): Recognize @(push similarly to other
directives.
* lib.[ch] (push_s): New symbol variable.
* match.c (v_output_keys): Internal linkage changes to external.
(v_push): New function.
(v_parallel): We must fix the max_line algorithm not to
use an initial value of zero, because lines can go negative
thanks to @(push). We end up rejecting the pushed data.
(v_collect): We can no longer assert that the data line
number doesn't retreat.
(dir_tables_init): Register push directive in table of
vertical directives.
* match.h (append_k, continue_k, finish_k): Existing symbol
variables declared.
(v_output_keys): Declared.
* y.tab.c.shipped,
* y.tab.h.shipped,
* lex.yy.c.shipped: Updated.
* txr.1: Documented.
* stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'stdlib/doc-syms.tl')
-rw-r--r-- | stdlib/doc-syms.tl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/stdlib/doc-syms.tl b/stdlib/doc-syms.tl index 89731a67..ac078f80 100644 --- a/stdlib/doc-syms.tl +++ b/stdlib/doc-syms.tl @@ -293,7 +293,7 @@ ("cdddddr" "N-001FA3CB") ("cddr" "N-001FA3CB") ("cdr" "D-007A") - ("ceil" "D-007E") + ("ceil" "D-007F") ("ceil-rem" "N-02DE978F") ("ceil1" "N-02C8FF28") ("chain" "N-00C53CF7") @@ -411,7 +411,7 @@ ("copy-tree-iter" "N-025C3140") ("copy-vec" "N-010E7635") ("cos" "D-0021") - ("cosh" "D-0082") + ("cosh" "D-0083") ("count" "N-00AE0CB6") ("count-if" "N-00AE0CB6") ("count-until-match" "N-00EFD668") @@ -736,7 +736,7 @@ ("file-put" "N-0041C2E5") ("file-put-buf" "N-02AE3A31") ("file-put-json" "D-0029") - ("file-put-jsons" "D-007F") + ("file-put-jsons" "D-0080") ("file-put-lines" "N-0041C2E5") ("file-put-string" "N-0041C2E5") ("fileno" "N-008ACF75") @@ -1144,7 +1144,7 @@ ("listp" "N-03F70343") ("lnew" "N-0230059D") ("lnew*" "N-021E6FDC") - ("load" "D-0083") + ("load" "D-0084") ("load-args-process" "N-03D9382A") ("load-args-recurse" "N-03067356") ("load-for" "N-0020A085") @@ -1528,11 +1528,11 @@ ("ptrdiff-t" "N-01B6F219") ("pure-rel-path-p" "N-019DEA44") ("purge-deferred-warning" "N-0077C4FE") - ("push" "N-01C211C1") + ("push" "D-007D") ("push-after-load" "N-01F489FE") ("pushhash" "N-022660B2") ("pushnew" "N-02C37AB0") - ("put-buf" "D-0081") + ("put-buf" "D-0082") ("put-byte" "D-002E") ("put-carray" "N-00737951") ("put-char" "D-0002") @@ -1542,7 +1542,7 @@ ("put-line" "N-012163C3") ("put-lines" "N-0367B282") ("put-obj" "N-025DB229") - ("put-string" "D-007D") + ("put-string" "D-007E") ("put-strings" "N-0367B282") ("pwd" "N-0047F5F6") ("qquote" "N-01665185") @@ -1633,7 +1633,7 @@ ("replace-struct" "N-01A8343B") ("replace-tree-iter" "N-01225FF3") ("replace-vec" "N-01F59E62") - ("require" "D-0080") + ("require" "D-0081") ("res" "N-03D33A57") ("reset-struct" "N-002A609F") ("rest" "N-02288559") |