/usr/lib/freebsd/yacc is in freebsd-glue 0.2.22.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/lib/freebsd/../../bin/byacc
/usr/lib/freebsd/../../bin/byacc