summaryrefslogtreecommitdiffstats
path: root/Lib/compiler/syntax.py
Commit message (Collapse)AuthorAgeFilesLines
* Stop looping to do nothing, just pass.Neal Norwitz2005-11-251-2/+2
|
* Last set of change to get regression tests to passJeremy Hylton2001-09-171-4/+5
| | | | | | | | | | | Remove the only test in the syntax module. It ends up that the transformer must handle this error case. In the transformer, check for a list compression in com_assign_list() by looking for a list_for node where a comma is expected. In pycodegen.compile() re-raise the SyntaxError rather than catching it and exiting
* Handle more syntax errors.Jeremy Hylton2001-09-171-0/+45
Invoke compiler.syntax.check() after building AST. If a SyntaxError occurs, print the error and exit without generating a .pyc file. Refactor code to use compiler.misc.set_filename() rather than passing filename argument around to each CodeGenerator instance.