Permalink
Browse files

Everything in oil/{osh/,core/,asdl/,}*.py compiles with OPy now.

Haven't run the code yet.
  • Loading branch information...
Andy Chu
Andy Chu committed Apr 3, 2017
1 parent 9d4a249 commit 92c1039af6c1441e50c6a4208ec99c595d56a7a0
Showing with 7 additions and 12 deletions.
  1. +3 −6 core/compile.py
  2. +4 −6 opy/run.sh
View
@@ -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)
View
@@ -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

Please sign in to comment.