0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00
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
..
acceler.c
asdl_c.py
asdl.py
bitset.c
firstsets.c
grammar1.c
grammar.c
grammar.mak
intrcheck.c
listnode.c
metagrammar.c
myreadline.c
node.c
parser.c
parser.h
parsetok.c
pgen.c
pgenmain.c
printgrammar.c
Python.asdl Improved handling of syntax errors. 2006-01-27 15:18:39 +00:00
spark.py
tokenizer_pgen.c
tokenizer.c
tokenizer.h