cpython/Parser
Jeremy Hylton c960f26044 Improved handling of syntax errors.
Expand set of errors caught in set_context().  Some new errors, some
old error messages changed for consistency.

Fixed error checking in generator expression code.  The first set of
tests were impossible condition given the grammar.  In general, the
ast code uses REQ() for those sanity checks.

Fix some error handling for augmented assignments.  As comments in the
code explain, set_context() ought to work here, but I got unexpected
crashes when I tried it.  Should come back to this.

Add note to Grammar that yield expression is a special case.

Add doctest cases for SyntaxErrors raised by ast.c.
2006-01-27 15:18:39 +00:00
..
Python.asdl Improved handling of syntax errors. 2006-01-27 15:18:39 +00:00
acceler.c [Patch #974633] Check PyObject_MALLOC return for error 2004-06-29 14:03:04 +00:00
asdl.py Whitespace normalization. 2005-12-25 23:18:31 +00:00
asdl_c.py Whitespace normalization. 2005-12-25 23:18:31 +00:00
bitset.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
firstsets.c Silence parser generator output. 2001-09-11 16:43:16 +00:00
grammar.c Fix SF bug #1072182, problems with signed characters. 2005-12-19 06:05:18 +00:00
grammar.mak Merge ast-branch to head 2005-10-20 19:59:25 +00:00
grammar1.c PyGrammar_LabelRepr(): sprintf -> PyOS_snprintf. 2001-12-04 03:36:01 +00:00
intrcheck.c Patch #975056 - fixes for restartable signals on *BSD. In addition, 2004-10-13 14:48:50 +00:00
listnode.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
metagrammar.c Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to 2003-04-17 14:55:42 +00:00
myreadline.c In a threads-disabled build, typing Ctrl-C into a raw_input() crashed, 2005-04-07 10:11:19 +00:00
node.c SF patch #578297: 2002-08-04 06:28:21 +00:00
parser.c Disable the parser hacks that allowed the "yield" keyword to be enabled 2002-03-22 23:38:11 +00:00
parser.h Disable the parser hacks that enabled the "yield" keyword using a future 2002-03-22 23:53:36 +00:00
parsetok.c Prevent unlikely memory leak, tok should always be freed when parsetok() returns 2005-11-15 04:54:23 +00:00
pgen.c Revert previous checkin, the check is for <, not ==. i is unsed in non-debug builds, but is used in debug builds 2006-01-08 02:06:01 +00:00
pgenmain.c - Fix segfault with invalid coding. 2005-10-02 01:48:49 +00:00
printgrammar.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
spark.py Whitespace normalization. 2005-12-25 23:18:31 +00:00
tokenizer.c Fix SF bug #1072182, problems with signed characters. 2005-12-19 06:05:18 +00:00
tokenizer.h Constify filenames and scripts. Fixes #651362. 2002-12-11 14:04:59 +00:00
tokenizer_pgen.c Patch #534304: Implement phase 1 of PEP 263. 2002-08-04 17:29:52 +00:00