Sfix implements namelists (see /doc/mk.pdf), to replace prefixes and suffixes around %.  Currently doesn't allow % as a replaced or replacement character in the patterns.  Update lex and yacc do scripts to use sfix.  Calc test program just segfaults on Ubuntu 12.10.