RustPython-Parser/scripts/update_asdl.sh
2023-05-16 16:55:26 +09:00

8 lines
255 B
Bash
Executable file

#!/bin/bash
set -e
cd "$(dirname "$(dirname "$0")")"
# rm ast/src/gen/*.rs
python ast/asdl_rs.py --ast-dir ast/src/gen/ --module-file ../RustPython/vm/src/stdlib/ast/gen.rs ast/Python.asdl
rustfmt ast/src/gen/*.rs ../RustPython/vm/src/stdlib/ast/gen.rs