Encapsulated lexer and updated calling functions accordingly.
[pspp-builds.git] / src / language / lexer / ChangeLog
1 Sun Nov 12 06:34:06 WST 2006 John Darrrington <john@darrington.wattle.id.au>
2
3         * format-parser.c format-parser.h lexer.c lexer.h q2c.c range-parser.c
4           range-parser.h subcommand-list.c variable-parser.c
5           variable-parser.h:
6
7         Encapsulated the lexer into an object, and updated everything
8         accordingly.
9
10 Tue Oct 31 18:09:32 2006  Ben Pfaff  <blp@gnu.org>
11
12         * range-parser.c (parse_number): Fix error message.
13
14 Sat Oct 28 16:17:18 WST 2006 John Darrington <john@darrington.wattle.id.au>
15
16         * lexer.c lexer.h: Added a line_buffer (previously an external
17         reference called getl_buf). 
18
19 Thu Oct 26 20:18:03 2006  Ben Pfaff  <blp@gnu.org>
20
21         * lexer.c (parse_string): Make lexing of binary, hex, and octal
22         strings work (fixes bug #17948).  Allow null bytes in strings, now
23         that there's a use for them (see tests/formats/float-format.sh).
24
25 Sun Jul 16 21:03:34 2006  Ben Pfaff  <blp@gnu.org>
26
27         * format-parser.h: New file.  Moved prototypes of format-parser.c
28         functions here, from lexer.h.
29
30         * format-parser.c: (parse_format_specifier_name) Rewrote and
31         changed semantics.
32         (parse_abstract_format_specifier) New function.
33         (parse_format_specifier) Rewrote in terms of
34         parse_abstract_format_specifier.  Removed "options" parameter, so
35         callers had to be updated.  Callers that didn't want messages
36         emitted were changed to use the new msg_disable/msg_enable
37         functions.
38
39         * variables-parser.c: (parse_variables_pool) New function.
40         (register_vars_pool) New function.
41         (parse_DATA_LIST_vars_pool) New function.
42         (parse_mixed_vars_pool) Use register_vars_pool.  Assert that
43         PV_APPEND is not in the options.
44         
45 Sat Jul  1 17:40:38 2006  Ben Pfaff  <blp@gnu.org>
46
47         Fix bug #11612, "q2c documentation does not agree with code".
48         
49         * q2c.c (parse_subcommand): Make "+" mean ARITY_MANY, absence
50         mean ARITY_ONCE_ONLY.
51
52 Tue Jul  4 09:45:12 2006  Ben Pfaff  <blp@gnu.org>
53
54         Fix bug #15766 (/KEEP subcommand on SAVE doesn't fully support
55         ALL) and additional underlying system file issues.
56         
57         * variable-parser.c (add_variable): Move test earlier for clarity
58         and efficiency.
59         (parse_var_set_vars) Accept ALL within a variable list, not just
60         at the beginning of one.
61
62 Tue Jun 27 22:54:30 2006  Ben Pfaff  <blp@gnu.org>
63
64         * automake.mk (src_language_lexer_liblexer_a_SOURCES): Add
65         variable-parser.h.
66
67 Tue Jun 27 19:15:33 2006  Ben Pfaff  <blp@gnu.org>
68
69         Add auxiliary data pointer to q2c parse_<command> function, and
70         pass it along to the custom parser functions.
71
72         Updated all uses of custom functions in all the existing .q files.
73         
74         * q2c.c (dump_declarations): Include auxiliary parameter in
75         function prototypes.
76         (dump_subcommand) Include aux arg in calls to custom functions.
77         (dump_parser) Include aux param in parse_<command> function
78         definition.  Include aux arg in calls to custom functions.
79
80 Tue Jun 27 12:07:34 2006  Ben Pfaff  <blp@gnu.org>
81
82         * variable-parser.h: New header.  Moved the var_set and variable
83         parsing declarations here.
84
85         * q2c.c (main): Emit include for new variable-parser.h header.
86
87 Sun Jun 25 22:41:00 2006  Ben Pfaff  <blp@gnu.org>
88
89         * q2c.c (dump_free): For SBC_DBL_LIST, enclose the output code in
90         curly braces, because it contains a variable declaration and might
91         not be at the beginning of a block.
92
93 Fri Jun  9 14:02:19 2006  Ben Pfaff  <blp@gnu.org>
94
95         Reform string library.
96         
97         * q2c.c (dump_subcommand): ds_c_str() became ds_cstr(), in
98         generated code.
99
100 Wed Apr 26 13:30:41 2006  Ben Pfaff  <blp@gnu.org>
101
102         * lexer.c: (lex_discard_rest_of_command) New function.
103
104 Mon Apr 24 14:12:08 2006  Ben Pfaff  <blp@gnu.org>
105
106         * q2c.c: Use exit.h from gnulib instead of checking for and
107         defining EXIT_SUCCESS and EXIT_FAILURE by hand.
108
109 Sat Apr 15 14:30:35 2006  Ben Pfaff  <blp@gnu.org>
110
111         * q2c.c: Change DEBUGGING macro to DUMP_TOKENS for clarity and to
112         avoid dumping all the tokens to stdout when --enable-debug is
113         passed to configure.
114
115 Fri Mar 10 08:29:25 2006  Ben Pfaff  <blp@gnu.org>
116
117         * q2c.c: (dump_free) Free proper member for var list, instead of
118         hard-coding to v_variables.  Thanks to Jason Stover for reporting
119         this bug.
120
121 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
122         
123         * Moved files from src directory