1.1 --- a/test.py Sat Apr 20 00:59:58 2013 +0200
1.2 +++ b/test.py Thu Apr 25 18:08:32 2013 +0200
1.3 @@ -1,8 +1,10 @@
1.4 #!/usr/bin/env python
1.5
1.6 +from micropython.graph import get_graph
1.7 import micropython.cmd
1.8 +import micropython.deduce
1.9 import micropython.report
1.10 -from micropython.graph import get_graph
1.11 +import micropython.syspython
1.12 import rsvp
1.13 import sys
1.14 import os
1.15 @@ -83,6 +85,10 @@
1.16
1.17 b = i.get_module("__builtins__")
1.18
1.19 + # Perform deductions.
1.20 +
1.21 + micropython.deduce.deduce(p)
1.22 +
1.23 # Make a report.
1.24
1.25 if "-d" in args:
1.26 @@ -94,6 +100,17 @@
1.27 print "Generating report in", directory
1.28 micropython.report.report(p, directory)
1.29
1.30 + # Make the syspython representation.
1.31 +
1.32 + if "-s" in args:
1.33 + try:
1.34 + directory = args[args.index("-s") + 1]
1.35 + except IndexError:
1.36 + print "No directory specified. Not generating syspython program."
1.37 + else:
1.38 + print "Generating syspython program in", directory
1.39 + micropython.syspython.translate(p, directory)
1.40 +
1.41 if "-G" in args:
1.42 try:
1.43 graph = args[args.index("-G") + 1]