15 lines
260 B
Bash
15 lines
260 B
Bash
#!/bin/bash
|
|
|
|
cat << EOF > oracle_table.py
|
|
from grammar import Tok, Variable
|
|
|
|
oracle_table = (
|
|
EOF
|
|
|
|
if python build_oracle.py >> oracle_table.py; then
|
|
echo ")" >> oracle_table.py
|
|
echo "Built oracle_table.py"
|
|
else
|
|
rm oracle_table.py
|
|
python build_oracle.py
|
|
fi |