Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs444
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xun Yang
cs444
Commits
f05d4de6
Commit
f05d4de6
authored
5 years ago
by
Xun Yang
Browse files
Options
Downloads
Patches
Plain Diff
fix script
parent
9068c3c7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
joosc
+3
-6
3 additions, 6 deletions
joosc
joosc.py
+2
-2
2 additions, 2 deletions
joosc.py
with
5 additions
and
8 deletions
joosc
+
3
−
6
View file @
f05d4de6
#! /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
This diff is collapsed.
Click to expand it.
joosc.py
+
2
−
2
View file @
f05d4de6
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment