summaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-12-29 23:28:45 -0800
committerKaz Kylheku <kaz@kylheku.com>2011-12-29 23:28:45 -0800
commit0b81b8b4c39b6c60cbbe8de5a6a785beb43c3dbb (patch)
treefcdcd0614874951ad5d9521f3cc75febd765302a /ChangeLog
parent3e09c38f75b087e583abb30762a9a251b8f424f9 (diff)
downloadtxr-0b81b8b4c39b6c60cbbe8de5a6a785beb43c3dbb.tar.gz
txr-0b81b8b4c39b6c60cbbe8de5a6a785beb43c3dbb.tar.bz2
txr-0b81b8b4c39b6c60cbbe8de5a6a785beb43c3dbb.zip
New functionality: mod and modlast directives in repeat and rep.
* eval.c (eval_init): Use new symbol variable mod_s instead of calling intern. * match.c (mod_s, modlast_s): Symbol variables defined. (do_output_line): mod and modlast directives implemented under rep. (do_output): likewise under repeat. (syms_init): Initialize new symbol variables. * match.h (mod_s, modlast_s): Declared. * parser.l (MOD, MODLAST): Parse new token types. * parser.y (MOD, MODLAST): New tokens. (repeat_parts_opt, rep_parts_opt): New syntax. (repeat_rep_helper): Handle mod and modlast syntax. * txr.1: Updated. * txr.vim: Updated.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog24
1 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 99ae385e..13c01dae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,29 @@
2011-12-29 Kaz Kylheku <kaz@kylheku.com>
+ New functionality: mod and modlast directives in repeat and rep.
+
+ * eval.c (eval_init): Use new symbol variable mod_s instead
+ of calling intern.
+
+ * match.c (mod_s, modlast_s): Symbol variables defined.
+ (do_output_line): mod and modlast directives implemented under rep.
+ (do_output): likewise under repeat.
+ (syms_init): Initialize new symbol variables.
+
+ * match.h (mod_s, modlast_s): Declared.
+
+ * parser.l (MOD, MODLAST): Parse new token types.
+
+ * parser.y (MOD, MODLAST): New tokens.
+ (repeat_parts_opt, rep_parts_opt): New syntax.
+ (repeat_rep_helper): Handle mod and modlast syntax.
+
+ * txr.1: Updated.
+
+ * txr.vim: Updated.
+
+2011-12-29 Kaz Kylheku <kaz@kylheku.com>
+
* parser.y (repeat_rep_helper): Bugfix. Circular lists
were being created here when clauses of the same kind appear multiple
times. The problem is that append2 no longer copies the second list,