Estimate parameters. Moved some code to re-usable functions.
[pspp-builds.git] / src / language / lexer / ChangeLog
index 2bc5b87ef0f32ed9bce3573234cc77a35cec62f5..aea10c5f11aedbe95d2b1f8cd9c33467f5c70a6f 100644 (file)
@@ -1,3 +1,159 @@
+2007-12-04  Ben Pfaff  <blp@gnu.org>
+
+       * lexer.c (lex_match_id_n): New function.
+       (lex_match_id): Reimplement in terms of lex_match_id_n.
+
+2007-08-16  Ben Pfaff  <blp@gnu.org>
+
+       Implement journaling.  Bug #17240.
+       
+       * lexer.c (lex_get_line_raw): Pass the line read to journal_write.
+
+2007-06-03  Ben Pfaff  <blp@gnu.org>
+
+       Implement missing functions for subcommand integer lists.
+       
+       * subcommand-list.c (subc_list_int_create): New function.
+       (subc_list_int_push): New function.
+       (subc_list_int_count): New function.
+       (subc_list_int_at): New function.
+       (subc_list_int_destroy): New function.
+
+2007-05-06  Ben Pfaff  <blp@gnu.org>
+
+       Abstract the documents within a dictionary a little better.
+       Thanks to John Darrington for suggestion, initial version, and
+       review.  Patch #5917.
+
+       * lexer.c (lex_entire_line): Add const to parameter.
+       (lex_entire_line_ds): Ditto.
+       (lex_rest_of_line): Drop end_dot parameter.  Update all callers to
+       use lex_end_dot instead.
+       (lex_end_dot): New function.
+
+2007-05-03  John Darrington <john@darrington.wattle.id.au>
+       
+       * lexer.c lexer.h: Added lex_is_string function.
+       
+2007-04-15  Ben Pfaff  <blp@gnu.org>
+
+       * q2c.c: Fully support lists of integer values.  Add support for
+       lists of string values.  Add some more needed declarations to
+       headers.
+
+Fri Feb 16 11:14:42 2007  Ben Pfaff  <blp@gnu.org>
+
+       Better support cross-compiling by using CC_FOR_BUILD and
+       EXEEXT_FOR_BUILD for q2c.
+       
+       * automake.mk: Use EXEEXT_FOR_BUILD and CC_FOR_BUILD to build and
+       clean q2c.
+
+       * q2c.c: Avoid external dependencies, besides the standard C
+       library.
+
+Sun Feb 11 20:31:51 2007  Ben Pfaff  <blp@gnu.org>
+
+       * q2c.c: Make q2c link under mingw32, by eliminating the
+       dependency on localtime.  Gnulib replaces localtime by a fixed
+       version, but we don't link q2c against gnulib.  q2c only uses
+       localtime to put the time of processing into the output file,
+       which I've never in practice found to be useful, so the patch just
+       drops this feature.
+
+Wed Dec 13 21:00:24 2006  Ben Pfaff  <blp@gnu.org>
+
+       * variable-parser.c (parse_variables): If not successful, set
+       output pointer to NULL and output count to 0.
+
+Sat Dec  9 18:46:11 2006  Ben Pfaff  <blp@gnu.org>
+
+       * variable-parser.h: New PV_SAME_WIDTH variable parsing option.
+
+       * variable-parser.c (add_variable): Implement new PV_SAME_WIDTH
+       option.
+       (parse_var_set_vars) Ditto.
+       (array_var_set_lookup_var_idx) Use new var_create, var_destroy
+       functions.
+
+Sat Dec  2 21:19:50 2006  Ben Pfaff  <blp@gnu.org>
+
+       General clean-up.
+       
+       * lexer.c: (lex_token_name) Don't use a static buffer or, rather,
+       use a separate static buffer for each possible answer.
+       (lex_token_representation) Now use lex_token_name as building
+       block.  Previously this broke lex_force_match because it uses
+       lex_token_name in a call to lex_error, which in turn uses
+       lex_token_representation.
+       (lex_force_match_id) Use lex_match_id as building block, to
+       simplify.
+       (parse_id) Rewrite to work with modified lex_id_to_token and
+       lex_id_get_length.  The computation of rest_of_line is a bit of an
+       abomination but it will get fixed later.
+       
+Sat Dec  2 20:16:50 2006  Ben Pfaff  <blp@gnu.org>
+
+       * lexer.c (struct lexer): Change function signature for
+       `read_line' to take an "enum getl_syntax *" instead of "bool *".
+       (lex_create) Ditto, for argument.
+       (lex_preprocess_line) New function.
+       (lex_get_line_raw) New arg, to allow caller to obtain getl_syntax
+       of the line read.
+       (lex_get_line) Use lex_get_line_raw and lex_preprocess_line to
+       simplify.
+
+Sun Nov 19 09:20:42 2006  Ben Pfaff  <blp@gnu.org>
+
+       * range-parser.c (parse_num_range): Because data_in takes an enum
+       fmt_type now, not a struct fmt_spec, change the type of the
+       corresponding argument.  Updated all callers.
+       (parse_number) Ditto.
+
+Sun Nov 12 06:34:06 WST 2006 John Darrington <john@darrington.wattle.id.au>
+
+       * format-parser.c format-parser.h lexer.c lexer.h q2c.c range-parser.c
+         range-parser.h subcommand-list.c variable-parser.c
+         variable-parser.h:
+
+       Encapsulated the lexer into an object, and updated everything
+       accordingly.
+
+Tue Oct 31 18:09:32 2006  Ben Pfaff  <blp@gnu.org>
+
+       * range-parser.c (parse_number): Fix error message.
+
+Sat Oct 28 16:17:18 WST 2006 John Darrington <john@darrington.wattle.id.au>
+
+       * lexer.c lexer.h: Added a line_buffer (previously an external
+       reference called getl_buf). 
+
+Thu Oct 26 20:18:03 2006  Ben Pfaff  <blp@gnu.org>
+
+       * lexer.c (parse_string): Make lexing of binary, hex, and octal
+       strings work (fixes bug #17948).  Allow null bytes in strings, now
+       that there's a use for them (see tests/formats/float-format.sh).
+
+Sun Jul 16 21:03:34 2006  Ben Pfaff  <blp@gnu.org>
+
+       * format-parser.h: New file.  Moved prototypes of format-parser.c
+       functions here, from lexer.h.
+
+       * format-parser.c: (parse_format_specifier_name) Rewrote and
+       changed semantics.
+       (parse_abstract_format_specifier) New function.
+       (parse_format_specifier) Rewrote in terms of
+       parse_abstract_format_specifier.  Removed "options" parameter, so
+       callers had to be updated.  Callers that didn't want messages
+       emitted were changed to use the new msg_disable/msg_enable
+       functions.
+
+       * variables-parser.c: (parse_variables_pool) New function.
+       (register_vars_pool) New function.
+       (parse_DATA_LIST_vars_pool) New function.
+       (parse_mixed_vars_pool) Use register_vars_pool.  Assert that
+       PV_APPEND is not in the options.
+       
 Sat Jul  1 17:40:38 2006  Ben Pfaff  <blp@gnu.org>
 
        Fix bug #11612, "q2c documentation does not agree with code".