Debian Codegraph @

rpython/translator/goal/targetreallynopstandalone.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 import os, sys
11
12 def debug(msg):
13 os.write(2, "debug: " + msg + '\n')
14
15 # __________ Entry point __________
16
17 def entry_point(argv):
18 return 0
19
20 # _____ Define and setup target ___
21
22 def target(*args):
23 return entry_point, None