[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/ChangeLog
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] Changes to pspp/src/ChangeLog |
Date: |
Sun, 06 Mar 2005 22:04:50 -0500 |
Index: pspp/src/ChangeLog
diff -u pspp/src/ChangeLog:1.148 pspp/src/ChangeLog:1.149
--- pspp/src/ChangeLog:1.148 Thu Mar 3 14:21:00 2005
+++ pspp/src/ChangeLog Mon Mar 7 03:04:50 2005
@@ -1,3 +1,30 @@
+Sun Mar 6 17:07:20 2005 Ben Pfaff <address@hidden>
+
+ When the lexer sees something like `-5' in the input, it has to
+ decide whether it's a negative numeric constant token or a '-'
+ token followed by a positive numeric constant token. It always
+ decides on the former, and then the parser can call
+ lex_negative_to_dash() if it wants the latter. However, this
+ doesn't work for the case of `-0', because negative zero is
+ (portably) indistinguishable from positive zero. So now we divide
+ T_NUM into two tokens, T_POS_NUM and T_NEG_NUM, to make the
+ distinction clear. This requires a little bit of extra effort,
+ because there were several references to T_NUM in the code base.
+
+ * lexer.c: (lex_get) Use T_NEG_NUM and T_POS_NUM to distinguish
+ positive and negative numeric constants.
+ (lex_double_p) Renamed lex_is_number(). Changed return type to
+ bool. Updated all relevant references to T_NUM to instead use
+ this function.
+ (lex_double) Renamed lex_number(). All references updated.
+ (lex_integer_p) Renamed lex_is_integer(). Changed return type to
+ bool. All references updated.
+ (lex_token_representation) Understand T_NEG_NUM and T_POS_NUM.
+ (lex_negative_to_dash) Ditto.
+ (dump_token) Ditto.
+
+ * lexer.h: (enum) Add T_POS_NUM, T_NEG_NUM. Remove T_NUM.
+
Thu Mar 3 22:08:35 WST 2005 John Darrington <address@hidden>
* Makefile.am : Fixed up CLEANFILES target.
- [Pspp-cvs] Changes to pspp/src/ChangeLog, Ben Pfaff, 2005/03/01
- [Pspp-cvs] Changes to pspp/src/ChangeLog, John Darrington, 2005/03/03
- [Pspp-cvs] Changes to pspp/src/ChangeLog,
Ben Pfaff <=
- [Pspp-cvs] Changes to pspp/src/ChangeLog, Ben Pfaff, 2005/03/07
- [Pspp-cvs] Changes to pspp/src/ChangeLog, Ben Pfaff, 2005/03/07
- [Pspp-cvs] Changes to pspp/src/ChangeLog, John Darrington, 2005/03/08
- [Pspp-cvs] Changes to pspp/src/ChangeLog, Ben Pfaff, 2005/03/09
- [Pspp-cvs] Changes to pspp/src/ChangeLog, Ben Pfaff, 2005/03/11
- [Pspp-cvs] Changes to pspp/src/ChangeLog, Ben Pfaff, 2005/03/12
- [Pspp-cvs] Changes to pspp/src/ChangeLog, Ben Pfaff, 2005/03/12
- [Pspp-cvs] Changes to pspp/src/ChangeLog, Ben Pfaff, 2005/03/12
- [Pspp-cvs] Changes to pspp/src/ChangeLog, John Darrington, 2005/03/13
- [Pspp-cvs] Changes to pspp/src/ChangeLog, Ben Pfaff, 2005/03/13