replace yacc API prefix with a macro