Permalink
Browse files
Everything in oil/{osh/,core/,asdl/,}*.py compiles with OPy now.
Haven't run the code yet.
- Loading branch information...
Showing
with
7 additions
and
12 deletions.
-
+3
−6
core/compile.py
-
+4
−6
opy/run.sh
|
|
@@ -1,3 +1,4 @@ |
|
|
from __future__ import print_function
|
|
|
"""
|
|
|
compile.py: osh.asdl -> ovm.asdl
|
|
|
|
|
|
@@ -32,22 +33,18 @@ |
|
|
- maybe compile differently based on module-level :option
|
|
|
|
|
|
- not sure if redirects need to be separate into primitive push/pop
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
def main(argv):
|
|
|
print 'Hello from compile.py'
|
|
|
print('Hello from compile.py')
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
try:
|
|
|
main(sys.argv)
|
|
|
except RuntimeError as e:
|
|
|
print >>sys.stderr, 'FATAL: %s' % e
|
|
|
print('FATAL: %s' % e, file=sys.stderr)
|
|
|
sys.exit(1)
|
|
|
@@ -97,16 +97,14 @@ compile-opy() { |
|
|
compile-osh() {
|
|
|
local version=${1:-py2}
|
|
|
# Works
|
|
|
#_compile-many ../*.py
|
|
|
#_compile-many $version ../*.py
|
|
|
|
|
|
# kwonlyargs issue
|
|
|
#_compile-many ../core/*.py
|
|
|
#_compile-many $version ../core/*.py
|
|
|
|
|
|
# kwonlyargs issue
|
|
|
#_compile-many ../osh/*.py
|
|
|
#_compile-many $version ../osh/*.py
|
|
|
|
|
|
# Works.
|
|
|
#_compile-many $version ../asdl/*.py
|
|
|
_compile-many $version ../asdl/*.py
|
|
|
}
|
|
|
|
|
|
compile-hello() {
|
|
|
|
0 comments on commit
92c1039