import os, getopt
mad_debug = 0
binary = True
+ dump_tuples = False
target = None
- (options, arguments) = getopt.getopt(sys.argv[1:], "cd:o:")
+ (options, arguments) = getopt.getopt(sys.argv[1:], "cd:go:")
for (opt, val) in options:
if opt == '-c':
binary = False
elif opt == '-d':
mad_debug = int(val)
+ elif opt == '-g':
+ dump_tuples = True
elif opt == '-o':
target = val
# Perform global analysis
analyze(deck)
+
+ if (dump_tuples):
+ for t in deck:
+ print t
+
# Generate code
if arguments == ['-']:
generate(sys.stdout)