[Python-Dev] Python keywords (was Lockstep iteration !) (original) (raw)
Bill Tutt billtut@microsoft.com
Fri, 11 Aug 2000 10:01:44 -0700
- Previous message: [Python-Dev] noreply@sourceforge.net: [Python-bugs-list] [Bug #111620] lots of use of send() without verifyi ng amount of d
- Next message: [Python-Dev] Python keywords (was Lockstep iteration - eureka!)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] noreply@sourceforge.net: [Python-bugs-list] [Bug #111620] lots of use of send() without verifyi ng amount of d
- Next message: [Python-Dev] Python keywords (was Lockstep iteration - eureka!)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]