[Python-Dev] Python keywords (was Lockstep iteration - eureka !)

Bill Tutt billtut@microsoft.com
Fri, 11 Aug 2000 10:01:44 -0700


This is an alternative approach that we should certainly consider. We could
use ANTLR (www.antlr.org) as our parser generator, and have it generate Java
for JPython, and C++ for CPython.  This would be a good chunk of work, and
it's something I really don't have time to pursue. I don't even have time to
pursue the idea about moving keyword recognition into the lexer.

I'm just not sure if you want to bother introducing C++ into the Python
codebase solely to only have one parser for CPython and JPython.

Bill

 -----Original Message-----
From: 	bwarsaw@beopen.com [mailto:bwarsaw@beopen.com] 
Sent:	Thursday, August 10, 2000 8:01 PM
To:	Guido van Rossum
Cc:	Mark Hammond; python-dev@python.org
Subject:	Re: [Python-Dev] Python keywords (was Lockstep iteration -
eureka!)


>>>>> "GvR" == Guido van Rossum <guido@beopen.com> writes:

    GvR> Alas, I'm not sure how easy it will be.  The parser generator
    GvR> will probably have to be changed to allow you to indicate not
    GvR> to do a resword lookup at certain points in the grammar.  I
    GvR> don't know where to start. :-(

Yet another reason why it would be nice to (eventually) merge the
parsing technology in CPython and JPython.

i-don't-wanna-work-i-jes-wanna-bang-on-my-drum-all-day-ly y'rs,
-Barry

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://www.python.org/mailman/listinfo/python-dev