Make syntax error call yyerror() rather than raising a Python exception
[piyacc.git] / fix_bootstrap.sh
1 #!/bin/sh
2
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
5
6 for i in bootstrap_pilex bootstrap_piyacc
7 do
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
10 done