3 # note that both ast and _ast are reserved module names in recent Python
4 # so we will use x prefix for disambiguation instead of _ as we usually do
6 for i in bootstrap_pilex bootstrap_piyacc
8 sed -e 's/ast/xast/g; s/\([A-Za-z]\)xast/\1ast/g' -i $i/*.py $i/*.l $i/*.y
9 git mv $i/ast.py $i/xast.py