cpython/Parser
Guido van Rossum da62ecc9aa Add a really stupid warning about 'yield' used as an identifier.
This is really stupid because it cannot be suppressed or altered using
the warning framework; that's because the warning framework is built
on Python interpreter internals, and the parser generator doesn't have
access to any of those (you cannot use anything of type PyObject * in
the parser).

But it's better than nothing, and implementing a proper check for this
appears to require modifying compile.c in a dozen places, for which I
don't have the stamina today.  I promise we'll do better in 2.2a2.

At least it tells you the filename and line number (unlike the first
hack I considered :-).
2001-07-17 16:53:11 +00:00
..
.cvsignore Ignore a bunch of generated files. 2000-05-02 18:34:30 +00:00
acceler.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
assert.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
bitset.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
firstsets.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
grammar.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
grammar1.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
intrcheck.c RISCOS changes by dschwertberger. 2001-03-02 06:34:14 +00:00
listnode.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
metagrammar.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
myreadline.c RISCOS changes by dschwertberger. 2001-03-02 06:34:14 +00:00
node.c More limits.h stuff in node.c. 2000-09-26 06:11:54 +00:00
parser.c Preliminary support for "from __future__ import generators" to enable 2001-07-15 21:08:29 +00:00
parser.h Preliminary support for "from __future__ import generators" to enable 2001-07-15 21:08:29 +00:00
parsetok.c Add a really stupid warning about 'yield' used as an identifier. 2001-07-17 16:53:11 +00:00
pgen.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
pgen.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
pgenmain.c Take output filenames as arguments instead of hard-coding them. 2001-02-16 03:57:53 +00:00
printgrammar.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
tokenizer.c SF but #417587: compiler warnings compiling 2.1. 2001-04-21 02:46:11 +00:00
tokenizer.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00