RustPython-Parser/scripts/update_asdl.sh
2023-05-10 17:41:01 +09:00

7 lines
233 B
Bash
Executable file

#!/bin/bash
set -e
cd "$(dirname "$(dirname "$0")")"
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