• Jeremy Hylton's avatar
    Improved handling of syntax errors. · c960f260
    Jeremy Hylton yazdı
    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.
    c960f260
Adı
Son kayıt (commit)
Son güncelleme
..
Python.asdl Loading commit data...
acceler.c Loading commit data...
asdl.py Loading commit data...
asdl_c.py Loading commit data...
bitset.c Loading commit data...
firstsets.c Loading commit data...
grammar.c Loading commit data...
grammar.mak Loading commit data...
grammar1.c Loading commit data...
intrcheck.c Loading commit data...
listnode.c Loading commit data...
metagrammar.c Loading commit data...
myreadline.c Loading commit data...
node.c Loading commit data...
parser.c Loading commit data...
parser.h Loading commit data...
parsetok.c Loading commit data...
pgen.c Loading commit data...
pgenmain.c Loading commit data...
printgrammar.c Loading commit data...
spark.py Loading commit data...
tokenizer.c Loading commit data...
tokenizer.h Loading commit data...
tokenizer_pgen.c Loading commit data...