Fix lack of ->name and ->location in DO REPEAT's getl_interface.
[pspp-builds.git] / src / language / lexer / ChangeLog
1 Sat Dec  2 21:19:50 2006  Ben Pfaff  <blp@gnu.org>
2
3         General clean-up.
4         
5         * lexer.c: (lex_token_name) Don't use a static buffer or, rather,
6         use a separate static buffer for each possible answer.
7         (lex_token_representation) Now use lex_token_name as building
8         block.  Previously this broke lex_force_match because it uses
9         lex_token_name in a call to lex_error, which in turn uses
10         lex_token_representation.
11         (lex_force_match_id) Use lex_match_id as building block, to
12         simplify.
13         (parse_id) Rewrite to work with modified lex_id_to_token and
14         lex_id_get_length.  The computation of rest_of_line is a bit of an
15         abomination but it will get fixed later.
16         
17 Sat Dec  2 20:16:50 2006  Ben Pfaff  <blp@gnu.org>
18
19         * lexer.c (struct lexer): Change function signature for
20         `read_line' to take an "enum getl_syntax *" instead of "bool *".
21         (lex_create) Ditto, for argument.
22         (lex_preprocess_line) New function.
23         (lex_get_line_raw) New arg, to allow caller to obtain getl_syntax
24         of the line read.
25         (lex_get_line) Use lex_get_line_raw and lex_preprocess_line to
26         simplify.
27
28 Sun Nov 19 09:20:42 2006  Ben Pfaff  <blp@gnu.org>
29
30         * range-parser.c (parse_num_range): Because data_in takes an enum
31         fmt_type now, not a struct fmt_spec, change the type of the
32         corresponding argument.  Updated all callers.
33         (parse_number) Ditto.
34
35 Sun Nov 12 06:34:06 WST 2006 John Darrrington <john@darrington.wattle.id.au>
36
37         * format-parser.c format-parser.h lexer.c lexer.h q2c.c range-parser.c
38           range-parser.h subcommand-list.c variable-parser.c
39           variable-parser.h:
40
41         Encapsulated the lexer into an object, and updated everything
42         accordingly.
43
44 Tue Oct 31 18:09:32 2006  Ben Pfaff  <blp@gnu.org>
45
46         * range-parser.c (parse_number): Fix error message.
47
48 Sat Oct 28 16:17:18 WST 2006 John Darrington <john@darrington.wattle.id.au>
49
50         * lexer.c lexer.h: Added a line_buffer (previously an external
51         reference called getl_buf). 
52
53 Thu Oct 26 20:18:03 2006  Ben Pfaff  <blp@gnu.org>
54
55         * lexer.c (parse_string): Make lexing of binary, hex, and octal
56         strings work (fixes bug #17948).  Allow null bytes in strings, now
57         that there's a use for them (see tests/formats/float-format.sh).
58
59 Sun Jul 16 21:03:34 2006  Ben Pfaff  <blp@gnu.org>
60
61         * format-parser.h: New file.  Moved prototypes of format-parser.c
62         functions here, from lexer.h.
63
64         * format-parser.c: (parse_format_specifier_name) Rewrote and
65         changed semantics.
66         (parse_abstract_format_specifier) New function.
67         (parse_format_specifier) Rewrote in terms of
68         parse_abstract_format_specifier.  Removed "options" parameter, so
69         callers had to be updated.  Callers that didn't want messages
70         emitted were changed to use the new msg_disable/msg_enable
71         functions.
72
73         * variables-parser.c: (parse_variables_pool) New function.
74         (register_vars_pool) New function.
75         (parse_DATA_LIST_vars_pool) New function.
76         (parse_mixed_vars_pool) Use register_vars_pool.  Assert that
77         PV_APPEND is not in the options.
78         
79 Sat Jul  1 17:40:38 2006  Ben Pfaff  <blp@gnu.org>
80
81         Fix bug #11612, "q2c documentation does not agree with code".
82         
83         * q2c.c (parse_subcommand): Make "+" mean ARITY_MANY, absence
84         mean ARITY_ONCE_ONLY.
85
86 Tue Jul  4 09:45:12 2006  Ben Pfaff  <blp@gnu.org>
87
88         Fix bug #15766 (/KEEP subcommand on SAVE doesn't fully support
89         ALL) and additional underlying system file issues.
90         
91         * variable-parser.c (add_variable): Move test earlier for clarity
92         and efficiency.
93         (parse_var_set_vars) Accept ALL within a variable list, not just
94         at the beginning of one.
95
96 Tue Jun 27 22:54:30 2006  Ben Pfaff  <blp@gnu.org>
97
98         * automake.mk (src_language_lexer_liblexer_a_SOURCES): Add
99         variable-parser.h.
100
101 Tue Jun 27 19:15:33 2006  Ben Pfaff  <blp@gnu.org>
102
103         Add auxiliary data pointer to q2c parse_<command> function, and
104         pass it along to the custom parser functions.
105
106         Updated all uses of custom functions in all the existing .q files.
107         
108         * q2c.c (dump_declarations): Include auxiliary parameter in
109         function prototypes.
110         (dump_subcommand) Include aux arg in calls to custom functions.
111         (dump_parser) Include aux param in parse_<command> function
112         definition.  Include aux arg in calls to custom functions.
113
114 Tue Jun 27 12:07:34 2006  Ben Pfaff  <blp@gnu.org>
115
116         * variable-parser.h: New header.  Moved the var_set and variable
117         parsing declarations here.
118
119         * q2c.c (main): Emit include for new variable-parser.h header.
120
121 Sun Jun 25 22:41:00 2006  Ben Pfaff  <blp@gnu.org>
122
123         * q2c.c (dump_free): For SBC_DBL_LIST, enclose the output code in
124         curly braces, because it contains a variable declaration and might
125         not be at the beginning of a block.
126
127 Fri Jun  9 14:02:19 2006  Ben Pfaff  <blp@gnu.org>
128
129         Reform string library.
130         
131         * q2c.c (dump_subcommand): ds_c_str() became ds_cstr(), in
132         generated code.
133
134 Wed Apr 26 13:30:41 2006  Ben Pfaff  <blp@gnu.org>
135
136         * lexer.c: (lex_discard_rest_of_command) New function.
137
138 Mon Apr 24 14:12:08 2006  Ben Pfaff  <blp@gnu.org>
139
140         * q2c.c: Use exit.h from gnulib instead of checking for and
141         defining EXIT_SUCCESS and EXIT_FAILURE by hand.
142
143 Sat Apr 15 14:30:35 2006  Ben Pfaff  <blp@gnu.org>
144
145         * q2c.c: Change DEBUGGING macro to DUMP_TOKENS for clarity and to
146         avoid dumping all the tokens to stdout when --enable-debug is
147         passed to configure.
148
149 Fri Mar 10 08:29:25 2006  Ben Pfaff  <blp@gnu.org>
150
151         * q2c.c: (dump_free) Free proper member for var list, instead of
152         hard-coding to v_variables.  Thanks to Jason Stover for reporting
153         this bug.
154
155 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
156         
157         * Moved files from src directory