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