[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fri, 13 May 2005 10:24:31 +0800
On Thu, May 12, 2005 at 07:47:14AM -0700, Ben Pfaff wrote:
> Now let me know, does anybody try to implement lexer or some other
> parts of PSPP project as C++ classes. It seems to me that this can
> simplify your code.
No thanks. I don't want to mix C and C++.
But all C++ code is C code. So by implication all C++ code mixes itself with C
code. However I agree with your point of view. One should be very carefull
introducting C++ features to code that has been written assuming a C
paradigm. Having said that, if it's done slowly are carefully it's possible to
migrate a large C program into C++ without major problems.
> And I want to know from Ben Pfaff why in lexer some functions
> are "weird"?
They do things that don't fit into the usual model well, such as
retrieving the rest of the line without tokenizing it.
In other words the lexer is wierd, because the spss language is
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.
Description: PGP signature
- Lexer, michael_is_98, 2005/05/12
- Re: Lexer, Ben Pfaff, 2005/05/12
- Re: Lexer,
John Darrington <=