See here. You can install with brew:
brew install bison
Then update your scripts or your shell config to use brew's bison first in
your PATH:
export PATH="$(brew --prefix bison)/bin:$PATH"
Or
export PATH="/usr/local/opt/bison/bin:$PATH"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…