[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lexer

From: John Darrington
Subject: Re: Lexer
Date: Fri, 13 May 2005 10:24:31 +0800
User-agent: Mutt/1.3.28i

On Thu, May 12, 2005 at 07:47:14AM -0700, Ben Pfaff wrote:
     <address@hidden> writes:
     > 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 
lexicographically wierd.


PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See or any PGP keyserver for public key.

Attachment: pgpYTZDUeedAc.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]