Improve the way we handle the various parsing "states". Until now
[pspp-builds.git] / src / language / ChangeLog
1 Wed Apr 26 13:06:42 2006  Ben Pfaff  <blp@gnu.org>
2
3         Work on readline completion.
4
5         * command.c: (pspp_completion_function) Removed.
6         (pspp_attempted_completion_function) New function.
7         (command_generator) New function.
8
9 Wed Apr 26 13:04:48 2006  Ben Pfaff  <blp@gnu.org>
10
11         Improve the way we handle the various parsing "states".  Until now
12         we've hard-coded the state transitions in the command definition
13         file, but that's error-prone and, worse, it's redundant--we can
14         figure out what state we're in anyhow.  We can cleanly handle
15         INPUT PROGRAM and FILE TYPE with a nested command-processing loop.
16         
17         * command.c: (cmd_result_is_success) New function.
18         (cmd_result_is_failure) New function.
19         (enum states) New enum.
20         (enum flags) New enum.
21         (struct command) Add states, flags members.  Remove transition,
22         skip_entire_name, debug members.  Renamed func member as function.
23         (macro DEFCMD) Removed.
24         (macro DBGCMD) Removed.
25         (macro SPCCMD) Removed.
26         (macro UNIMPL) Removed.
27         (macro DEF_CMD) New.
28         (macro UNIMPL_CMD) New.
29         (macro COMMAND_CNT) Changed to static const var, renamed
30         command_cnt.  Updated all references.
31         (FILE_TYPE_okay) Removed.
32         (cmd_parse) Rewrote in terms of do_parse_command().
33         (do_parse_command) New function.
34         (find_command) New function.
35         (unknown_command_error) Use struct string to simplify code.
36         (parse_command_name) Recognize comment command names.  Handle
37         flags.  Don't reject testing-mode-only commands here--let higher
38         level do it.
39         (verify_valid_command) New function.
40         (cmd_comment) New function.
41
42         * command.def: Completely rewritten and now sensibly organized.
43
44         * command.h: (enum STATE_*) Renamed CMD_STATE_*.
45         (CMD_*) Now "enum cmd_result".  Added CMD_QUIT.  New
46         CMD_END_SUBLOOP.  Removed CMD_TRAILING_GARBAGE, CMD_PART_SUCCESS,
47         CMD_PART_SUCCESS_MAYBE and replaced all references by CMD_FAILURE.
48         Added CMD_NOT_IMPLEMENTED.
49         (macro DEFCMD) Removed.
50         (macro DBGCMD) Removed.
51         (macro SPCCMD) Removed.
52         (macro UNIMPL) Removed.
53         (macro DEF_CMD) New.
54         (macro UNIMPL_CMD) New.
55
56 Mon Apr  3 11:03:36 2006  Ben Pfaff  <blp@gnu.org>
57
58         * list.q: (write_all_headers) Adapt to new html and output
59         internals.
60         (clean_up) Ditto.
61         (write_varname) Ditto.
62         (write_fallback_headers) Ditto.
63         (determine_layout) Ditto.
64         (list_cases) Ditto.
65         
66
67 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
68         
69         * Moved files from src directory