summaryrefslogtreecommitdiffstats
path: root/Tools/compiler/astgen.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-09-17 18:03:55 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-09-17 18:03:55 (GMT)
commit37c9351cf6efbe58e01fd879a1d60cc6073ced6b (patch)
treeea89cd6bdc54124e7b36b203269c1f68a89442e0 /Tools/compiler/astgen.py
parent09392b77a4d8be766e394177a466d51c2a64480f (diff)
downloadcpython-37c9351cf6efbe58e01fd879a1d60cc6073ced6b.zip
cpython-37c9351cf6efbe58e01fd879a1d60cc6073ced6b.tar.gz
cpython-37c9351cf6efbe58e01fd879a1d60cc6073ced6b.tar.bz2
Handle more syntax errors.
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.
Diffstat (limited to 'Tools/compiler/astgen.py')
0 files changed, 0 insertions, 0 deletions