Implemented the INSERT command.
[pspp-builds.git] / src / language / ChangeLog
1 2007-09-05  John Darrington <john@darrington.wattle.id.au>
2
3         * command.c (do_parse_command): Translate CMD_FAILURE into
4         CMD_CASCADING_FAILURE, if the ERRMODE_STOP is set on the syntax
5         source. 
6         
7         
8 2007-06-06  Ben Pfaff  <blp@gnu.org>
9
10         * command.def: Add DEBUG DATASHEET command.  Remove DEBUG CASEFILE
11         command.
12
13 2007-03-18  Ben Pfaff  <blp@gnu.org>
14
15         * syntax-string-source.c (close): Rename to do_close to avoid
16         conflict with POSIX function of the same name.
17
18 Thu Feb  8 15:04:42 2007  Ben Pfaff  <blp@gnu.org>
19
20         Reduce platform dependence.
21
22         * command.c (shell): Always define this function, instead of only
23         in unix, but make it a stub when fork or execl is not available.
24         (run_command): Move parsing code into cmd_host.
25         (cmd_host): Drop unix dependence now that the shell function is
26         always defined. 
27
28 Sun Jan 21 15:31:52 WST 2007 John Darrington <john@darrington.wattle.id.au>
29
30         * command.c command.h: Renamed cmd_parse to cmd_parse_in_state.
31         New function cmd_parse.
32
33 Wed Dec 13 21:02:51 2006  Ben Pfaff  <blp@gnu.org>
34
35         * command.def: Add DELETE VARS.
36
37 Sat Dec 16 22:15:55 2006  Ben Pfaff  <blp@gnu.org>
38
39         Make it possible to pull cases from the active file with a
40         function call, instead of requiring indirection through a callback
41         function.
42
43         * command.def: Marked MATRIX DATA as unimplemented.
44
45 Sun Dec  3 11:59:10 2006  Ben Pfaff  <blp@gnu.org>
46
47         * syntax-file.c (read_syntax_file): Always read GETL_BATCH lines.
48
49 Wed Nov 29 19:35:44 WST 2006 John Darrington <john@darrington.wattle.id.au>
50
51         * command.c: Updated to reflect changed function names.
52
53         * line-buffer.c line-buffer.h: Removed.  Guts of it moved to
54         libpspp/getl.[ch] The rest moved to files listed below.
55
56         * syntax-file.c syntax-file.h prompt.c prompt.h: New files.
57
58 Wed Nov 22 06:26:42 2006  Ben Pfaff  <blp@gnu.org>
59
60         * command.def: HOST command needs F_KEEP_FINAL_TOKEN.
61
62 Sat Oct 28 16:15:56 WST 2006 John Darrington <john@darrington.wattle.id.au>
63
64         * linebuffer.c linebuffer.h: Moved getl_buf from here, into
65         lexer/lexer.c
66
67 Thu Oct 26 20:19:00 2006  Ben Pfaff  <blp@gnu.org>
68
69         * command.def: Add DEBUG FLOAT FORMAT.
70
71 Fri Oct 20 10:59:06 WST 2006 John Darrington <john@darrington.wattle.id.au>
72
73         * command.def: Added additional unimpl commands.
74
75 Sun Oct 15 19:38:55 2006  Ben Pfaff  <blp@gnu.org>
76
77         * command.c: (do_parse_command) Issue an error for unimplemented
78         commands, instead of silently ignoring them.  Reported by John
79         Darrington.
80
81 Wed Jun 28 11:38:23 2006  Ben Pfaff  <blp@gnu.org>
82
83         Don't offer both the full and abbreviated names for a single
84         command in command name completion.
85         
86         * command.c: (enum flags) Add F_ABBREV flag.
87         (cmd_complete) Ignore command with F_ABBREV flag set.
88
89         * command.def: Add F_ABBREV to N, Q, SORT commands.
90
91 Tue Jun 27 22:36:38 2006  Ben Pfaff  <blp@gnu.org>
92
93         Fix regression in command name completion reported by John
94         Darrington.  Now completion is again state-dependent and occurs
95         only on the first line of a command.
96         
97         * command.c (do_parse_command): Move reading the first token of
98         the command here, from execute_command and cmd_input_program.
99         Call set_completion_state and getl_set_prompt_style here.
100         (do_parse_command) Use in_correct_state instead of
101         verify_valid_command.
102         (verify_valid_command) Break into two new functions,
103         in_correct_state and report_state_mismatch.
104         (set_completion_state) New function.
105         (cmd_complete) New function.
106         [HAVE_READLINE] (pspp_attempted_completion_function) Removed.
107         [HAVE_READLINE] (command_generator) Removed.
108
109         * line-buffer.c: (struct getl_source) Change `interactive' member
110         signature to take enum getl_prompt_style instead of const char *.
111         (create_interactive_source) Ditto, for parameter type.
112         (getl_append_interactive) Ditto.
113         (read_line_from_source) Pass get_prompt_style() to interactive
114         function instead of get_prompt().
115         (get_prompt) Removed.
116         (get_prompt_style) New function.
117         
118 Sat May  6 13:25:25 2006  Ben Pfaff  <blp@gnu.org>
119
120         Continue reforming procedure execution.  In this phase, remove
121         PROCESS IF, which was deprecated anyway and can be easily
122         simulated with TEMPORARY followed by SELECT IF.
123
124         * command.def: Removed PROCESS IF.
125
126 Mon May  1 18:17:52 2006  Ben Pfaff  <blp@gnu.org>
127
128         Further clean up the CMD_* command result codes.
129         
130         * command.c (cmd_result_is_valid): New function.
131         (cmd_result_is_success) Assert that argument is valid.  Simplified
132         check to one for a positive result.
133         (cmd_result_is_failure) Assert that argument is valid.  Simplified
134         check to one for a negative result.
135         (do_parse_command) Check that command's returned result is valid.
136
137         * command.h: (enum cmd_result) Renamed CMD_QUIT to CMD_FINISH and
138         updated all users.  Removed CMD_END_SUBLOOP in favor of new
139         CMD_PRIVATE_FIRST...CMD_PRIVATE_LAST range.  Changed failure codes
140         to have negative values.
141
142 Mon May  1 15:56:56 2006  Ben Pfaff  <blp@gnu.org>
143
144         Remove vestiges of FILE TYPE support. 
145         
146         * command.def: Mark FILE TYPE, RECORD TYPE unimplemented.
147
148 Wed Apr 26 21:13:46 2006  Ben Pfaff  <blp@gnu.org>
149
150         CLEAR TRANSFORMATIONS is unsafe as implemented.  It's a fair
151         amount of work to implement it correctly, so make it
152         unimplemented.
153                 
154         * command.c: (cmd_clear_transformations) Removed.
155
156         * command.def: Mark CLEAR TRANSFORMATIONS as unimplemented.
157
158 Wed Apr 26 13:06:42 2006  Ben Pfaff  <blp@gnu.org>
159
160         Work on readline completion.
161
162         * command.c: (pspp_completion_function) Removed.
163         (pspp_attempted_completion_function) New function.
164         (command_generator) New function.
165
166 Wed Apr 26 13:04:48 2006  Ben Pfaff  <blp@gnu.org>
167
168         Improve the way we handle the various parsing "states".  Until now
169         we've hard-coded the state transitions in the command definition
170         file, but that's error-prone and, worse, it's redundant--we can
171         figure out what state we're in anyhow.  We can cleanly handle
172         INPUT PROGRAM and FILE TYPE with a nested command-processing loop.
173         
174         * command.c: (cmd_result_is_success) New function.
175         (cmd_result_is_failure) New function.
176         (enum states) New enum.
177         (enum flags) New enum.
178         (struct command) Add states, flags members.  Remove transition,
179         skip_entire_name, debug members.  Renamed func member as function.
180         (macro DEFCMD) Removed.
181         (macro DBGCMD) Removed.
182         (macro SPCCMD) Removed.
183         (macro UNIMPL) Removed.
184         (macro DEF_CMD) New.
185         (macro UNIMPL_CMD) New.
186         (macro COMMAND_CNT) Changed to static const var, renamed
187         command_cnt.  Updated all references.
188         (FILE_TYPE_okay) Removed.
189         (cmd_parse) Rewrote in terms of do_parse_command().
190         (do_parse_command) New function.
191         (find_command) New function.
192         (unknown_command_error) Use struct string to simplify code.
193         (parse_command_name) Recognize comment command names.  Handle
194         flags.  Don't reject testing-mode-only commands here--let higher
195         level do it.
196         (verify_valid_command) New function.
197         (cmd_comment) New function.
198
199         * command.def: Completely rewritten and now sensibly organized.
200
201         * command.h: (enum STATE_*) Renamed CMD_STATE_*.
202         (CMD_*) Now "enum cmd_result".  Added CMD_QUIT.  New
203         CMD_END_SUBLOOP.  Removed CMD_TRAILING_GARBAGE, CMD_PART_SUCCESS,
204         CMD_PART_SUCCESS_MAYBE and replaced all references by CMD_FAILURE.
205         Added CMD_NOT_IMPLEMENTED.
206         (macro DEFCMD) Removed.
207         (macro DBGCMD) Removed.
208         (macro SPCCMD) Removed.
209         (macro UNIMPL) Removed.
210         (macro DEF_CMD) New.
211         (macro UNIMPL_CMD) New.
212
213 Mon Apr  3 11:03:36 2006  Ben Pfaff  <blp@gnu.org>
214
215         * list.q: (write_all_headers) Adapt to new html and output
216         internals.
217         (clean_up) Ditto.
218         (write_varname) Ditto.
219         (write_fallback_headers) Ditto.
220         (determine_layout) Ditto.
221         (list_cases) Ditto.
222         
223
224 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
225         
226         * Moved files from src directory