From 11173ced6d65339869fe74fbc9c4452a75e3fe26 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 25 Jan 2012 09:59:40 -0800 Subject: * eval.c (dwim_s): New symbol variable. (dwim_loc, op_dwim): New static functions. (op_modplace): Support assignment to dwim forms with the help of dwim_loc. (expand_place): Handle dwim places. (eval_init): Initialize dwim_s. Register dwim operator in op_table. * eval.h (dwim_s): Declared. * lib.c (chr_str, chr_str_set): Allow negative indices to index backwards from end of string. (vecref, vecref_l): Allow negative indices to index from rear of array. (obj_print, obj_pprint): Render (dwim ...) forms as [...]. * parser.l: Peoduce new METABKT token type for @[, and '[', ']' tokens. * parser.y (METABKT): New token. %type declaration for '['. (list): Support square-bracket style of list, translated into dwim form. (meta_expr): Support @[...] variant. (yybadtoken): Handle METABKT in switch. * txr.1: Documented [...] syntax and dwim operator. * txr.vim: Updated. --- ChangeLog | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 677ca263..010c6676 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,34 @@ +2012-01-25 Kaz Kylheku + + * eval.c (dwim_s): New symbol variable. + (dwim_loc, op_dwim): New static functions. + (op_modplace): Support assignment to dwim forms + with the help of dwim_loc. + (expand_place): Handle dwim places. + (eval_init): Initialize dwim_s. Register dwim operator + in op_table. + + * eval.h (dwim_s): Declared. + + * lib.c (chr_str, chr_str_set): Allow negative indices to index + backwards from end of string. + (vecref, vecref_l): Allow negative indices to index from + rear of array. + (obj_print, obj_pprint): Render (dwim ...) forms as [...]. + + * parser.l: Peoduce new METABKT token type for @[, + and '[', ']' tokens. + + * parser.y (METABKT): New token. %type declaration for '['. + (list): Support square-bracket style of list, translated + into dwim form. + (meta_expr): Support @[...] variant. + (yybadtoken): Handle METABKT in switch. + + * txr.1: Documented [...] syntax and dwim operator. + + * txr.vim: Updated. + 2012-01-21 Kaz Kylheku Version 54 -- cgit v1.2.3