[Python-checkins] CVS: python/dist/src/Tools/compiler compile.py,1.2,1.3
Jeremy Hylton
python-dev@python.org
Fri, 13 Oct 2000 14:59:35 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Tools/compiler/compiler ast.py,1.9,1.10 pyassem.py,1.12,1.13 pycodegen.py,1.25,1.26 transformer.py,1.15,1.16
- Next message: [Python-checkins] CVS: python/dist/src/Tools/compiler regrtest.py,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Tools/compiler
In directory slayer.i.sourceforge.net:/tmp/cvs-serv29555
Modified Files:
compile.py
Log Message:
add -d option that dumps entire AST before compiling
Index: compile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/compiler/compile.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** compile.py 2000/05/02 22:29:46 1.2
--- compile.py 2000/10/13 21:59:32 1.3
***************
*** 6,10 ****
def main():
VERBOSE = 0
! opts, args = getopt.getopt(sys.argv[1:], 'vq')
for k, v in opts:
if k == '-v':
--- 6,11 ----
def main():
VERBOSE = 0
! DISPLAY = 0
! opts, args = getopt.getopt(sys.argv[1:], 'vqd')
for k, v in opts:
if k == '-v':
***************
*** 17,20 ****
--- 18,23 ----
f = open('/dev/null', 'wb')
sys.stdout = f
+ if k == '-d':
+ DISPLAY = 1
if not args:
print "no files to compile"
***************
*** 23,27 ****
if VERBOSE:
print filename
! compile(filename)
if __name__ == "__main__":
--- 26,30 ----
if VERBOSE:
print filename
! compile(filename, DISPLAY)
if __name__ == "__main__":
- Previous message: [Python-checkins] CVS: python/dist/src/Tools/compiler/compiler ast.py,1.9,1.10 pyassem.py,1.12,1.13 pycodegen.py,1.25,1.26 transformer.py,1.15,1.16
- Next message: [Python-checkins] CVS: python/dist/src/Tools/compiler regrtest.py,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]