Skip to content
Snippets Groups Projects
Commit f05d4de6 authored by Xun Yang's avatar Xun Yang
Browse files

fix script

parent 9068c3c7
No related branches found
No related tags found
No related merge requests found
#! /bin/bash
result=`python joosc.py $1`
1>&2 echo $result
if [ '$result' != "0" ] ; then
exit 42
fi
exit 0
result=`python3 joosc.py $@`
echo $result
exit $result
\ No newline at end of file
......@@ -10,7 +10,7 @@ import Weeding
def main():
inputFiles = [f for f in sys.argv[1:]]
inputFiles = [f for f in sys.argv[2:]]
parseTrees = []
......@@ -46,7 +46,7 @@ def main():
# Building ASTs from all parse trees
ASTs = astBuild(parseTrees)
try:
buildEnvAndLink(ASTs)
except Exception as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment