Debian Codegraph @

rpython/translator/goal/targetnopstandalone.py

raw symbols SCIP
1 """
2 A simple standalone target.
3
4 The target below specifies None as the argument types list.
5 This is a case treated specially in driver.py . If the list
6 of input types is empty, it is meant to be a list of strings,
7 actually implementing argv of the executable.
8 """
9
10 def debug(msg):
11 print "debug:", msg
12
13 # __________ Entry point __________
14
15 def entry_point(argv):
16 debug("hello world")
17 return 0
18
19 # _____ Define and setup target ___
20
21 def target(*args):
22 return entry_point