[Top][All Lists]

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


From: John Darrington
Subject: lexer
Date: Thu, 9 Nov 2006 11:39:36 +0800
User-agent: Mutt/1.5.9i

On Wed, Nov 08, 2006 at 06:59:30PM -0800, Ben Pfaff wrote:

     > 4.  Probably a side issue:  I want to encapsulate the lexer, so that 
     >     lex_init() and lex_done() are replaced by struct lexer
     >     *create_lexer(void) and void destroy_lexer(struct lexer *)
     >     respectively.  main would have to do something with the returned
     >     lexer (I haven't thought what yet).
     Yes, I have had the same goal for some time.
     The global variables token, tokval, tokid, tokstr want to be
     encapsulated in a structure too.  tokid and tokstr should
     probably be merged somehow.  Some generalization and
     orthogonalization (if that's a word) is warranted.

Maybe I'll start looking at that when I get some time.

BTW, is there a reason why comments are dealt with in
src/language/command, instead of being filtered out by the lexer ?


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: signature.asc
Description: Digital signature

reply via email to

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