JSON-Lang/build_oracle.sh

15 lines
260 B
Bash
Raw Normal View History

2023-03-04 17:13:20 +00:00
#!/bin/bash
cat << EOF > oracle_table.py
from grammar import Tok, Variable
2023-03-04 17:13:20 +00:00
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