forked from jiahaogai/LLM-for-HLS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsyntax_check.sh
More file actions
37 lines (34 loc) · 889 Bytes
/
Copy pathsyntax_check.sh
File metadata and controls
37 lines (34 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Check if the number of parameters is 2
if [ "$#" -ne 2 ]; then
echo "Usage: $0 [-woCot | -cot] [-woFd | -synFd | -funFd]"
exit 1
fi
# Combine parameters into one string
args="$1_$2"
# Call different Python scripts based on the parameters
case "$args" in
-woCot_-woFd)
python ./src/syntax_check/syntax_check_woCot_woFd.py
;;
-woCot_-synFd)
python ./src/syntax_check/syntax_check_woCot_synFd.py
;;
-woCot_-funFd)
python ./src/syntax_check/syntax_check_woCot_funFd.py
;;
-cot_-woFd)
python ./src/syntax_check/syntax_check_cot_woFd.py
;;
-cot_-synFd)
python ./src/syntax_check/syntax_check_cot_synFd.py
;;
-cot_-funFd)
python ./src/syntax_check/syntax_check_cot_funFd.py
;;
*)
echo "Invalid argument combination: $1 $2"
echo "Usage: $0 [-woCot | -cot] [-woFd | -synFd | -funFd]"
exit 1
;;
esac