2023-03-04 17:13:20 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cat << EOF > oracle_table.py
|
2023-03-04 17:42:43 +00:00
|
|
|
from grammar import Tok, Variable
|
2023-03-04 17:13:20 +00:00
|
|
|
|
|
|
|
oracle_table = (
|
|
|
|
EOF
|
|
|
|
|
2023-03-04 17:47:56 +00:00
|
|
|
if python grammar.py >> oracle_table.py; then
|
2023-03-04 17:13:20 +00:00
|
|
|
echo ")" >> oracle_table.py
|
|
|
|
echo "Built oracle_table.py"
|
|
|
|
else
|
|
|
|
rm oracle_table.py
|
|
|
|
python build_oracle.py
|
|
|
|
fi
|