# This sed script contains replacement patterns to convert XS to PYXS
# It implements some of the required changes, however more changes
# might be needed.

/^#.*/! s/([^A-Za-z_0-9]|^)(all|bulk|flip|)([^A-Za-z_0-9]|$)/\1\2()\3/g
/^#.*/! s/([^A-Za-z_0-9]|^)(inverted|invert)([^A-Za-z_0-9]|$)/\1\2()\3/g
s/:mode[ ]*=>[ ]*/mode=/g
s/:taper[ ]*=>[ ]*/taper=/g
s/:bias[ ]*=>[ ]*/bias=/g
s/:into[ ]*=>[ ]*/into=/g
s/:through[ ]*=>[ ]*/through=/g
s/:buried[ ]*=>[ ]*/buried=/g
s/:to[ ]*=>[ ]*/to=/g
s/:mode/mode/g
s/:taper/taper/g
s/:bias/bias/g
s/:into/into/g
s/:through/through/g
s/:buried/buried/g
s/:to/buried/g
s/:round/'round'/g
s/:square/'square'/g
s/:octagon/'octagon'/g
s/.and\(/.and_\(/g
s/.or\(/.or_\(/g
s/.not\(/.not_\(/g
