Specify the output filename

bison

bison --output {{path/to/output.c}} {{path/to/file.y}}

click the source code to copy install bison on any operating system with command-not-found.com